summaryrefslogtreecommitdiff
path: root/ext/bg/js/deinflector.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-12 10:17:25 -0500
committerGitHub <noreply@github.com>2020-12-12 10:17:25 -0500
commitddb71af6bd8092cfed9f91401d5ecded6ef4c4b6 (patch)
treebee324abb2ad3afbed21ec76800c249dbf640e80 /ext/bg/js/deinflector.js
parent83ab864b98a579969d815225f03bc1627b88b80d (diff)
Add zuru deinflections (#1091)
* Update deinflector rule types * Add deinflection rules for zuru verbs * Add tests
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r--ext/bg/js/deinflector.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js
index b13079ef..341ff3e4 100644
--- a/ext/bg/js/deinflector.js
+++ b/ext/bg/js/deinflector.js
@@ -86,10 +86,11 @@ class Deinflector {
}
Deinflector.ruleTypes = new Map([
- ['v1', 0b0000001], // Verb ichidan
- ['v5', 0b0000010], // Verb godan
- ['vs', 0b0000100], // Verb suru
- ['vk', 0b0001000], // Verb kuru
- ['adj-i', 0b0010000], // Adjective i
- ['iru', 0b0100000] // Intermediate -iru endings for progressive or perfect tense
+ ['v1', 0b00000001], // Verb ichidan
+ ['v5', 0b00000010], // Verb godan
+ ['vs', 0b00000100], // Verb suru
+ ['vk', 0b00001000], // Verb kuru
+ ['vz', 0b00010000], // Verb zuru
+ ['adj-i', 0b00100000], // Adjective i
+ ['iru', 0b01000000] // Intermediate -iru endings for progressive or perfect tense
]);