Skip to content

Commit

Permalink
Update jpn.morpho.mjs
Browse files Browse the repository at this point in the history
solve the mismatched type problem of *ける and たべる
  • Loading branch information
shilik authored Oct 15, 2023
1 parent 1f9ce57 commit a118fb9
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,6 +399,7 @@ 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.SK;
let end = verb.slice(-1);
Expand All @@ -411,7 +412,7 @@ function __getVerbType(verb){
}

{//If it ends with these; it is Godan
let v5r = /(|||||||||||||)$/g;
let v5r = /(||||||||||||)$/g;
if (v5r.test(verb) || ruV5List[bend]) return VType.V5;
}

Expand Down

0 comments on commit a118fb9

Please sign in to comment.