aboutsummaryrefslogtreecommitdiff
path: root/test/deinflection/cases.ts
blob: 04df2bd862c6d206b555297bf3452ae8ff3347d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { TokenTags, Tag } from "../../language/tags.ts";
const { Inflection } = Tag;

interface Test {
	input: string;
	tags: TokenTags;
};

export default [
	{ input: "取る", tags: [], },
	{ input: "取らない", tags: [ Inflection.Negative ], },
	{ input: "取ります", tags: [ Inflection.Polite.Masu ], },
	{ input: "取りません", tags: [ Inflection.Negative, Inflection.Polite.Masu ], },
	{ input: "取った", tags: [ Inflection.Tense.Past ], },
	{ input: "取らなかった", tags: [ Inflection.Negative, Inflection.Tense.Past ], },
	{ input: "取りました", tags: [ Inflection.Polite.Masu, Inflection.Tense.Past ], },
	{ input: "取りませんでした", tags: [ Inflection.Negative, Inflection.Polite.Masu, Inflection.Tense.Past ], },
	{ input: "取って", tags: [ Inflection.Suffix.Te ], },
	{ input: "取らなくて", tags: [ Inflection.Negative, Inflection.Suffix.Te ], },
	{ input: "取れる", tags: [ Inflection.Potential ], },
	{ input: "取れない", tags: [ Inflection.Negative, Inflection.Potential ], },
	{ input: "取られる", tags: [ Inflection.Passive ], },
	{ input: "取られない", tags: [ Inflection.Negative, Inflection.Passive ], },
	{ input: "取らせる", tags: [ Inflection.Causative ], },
	{ input: "取らせない", tags: [ Inflection.Negative, Inflection.Causative ], },
	{ input: "取らせられる", tags: [ Inflection.Causative, Inflection.Passive ], },
	{ input: "取らせられない", tags: [ Inflection.Negative, Inflection.Causative, Inflection.Passive ], },
	{ input: "取れ", tags: [ Inflection.Imperative ], },
	{ input: "取るな", tags: [ Inflection.Negative, Inflection.Imperative ], },
] satisfies Test[];