Skip to content

Commit

Permalink
Update jpn.morpho.mjs
Browse files Browse the repository at this point in the history
solve the problem vtype mismatch for 飽きる 起きる 尽きる
  • Loading branch information
shilik authored Oct 15, 2023
1 parent 1f9ce57 commit 0a2bf9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jpn/jpn.morpho.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ function __jslinguaJpnStemmer(word) {
//==========================================

function __getVerbType(verb){
if (/()$/g.test(verb)) return VType.V1;
if (/(.)()$/g.test(verb)) return VType.V1;
if (/(|||||)$/g.test(verb)) return VType.V1;
if (/(||)$/g.test(verb)) return VType.SK;
let end = verb.slice(-1);
let bend = verb.slice(-2,-1);
Expand Down

0 comments on commit 0a2bf9a

Please sign in to comment.