Skip to content

Commit

Permalink
Merge pull request #69 from shilik/patch-2
Browse files Browse the repository at this point in the history
Update jpn.morpho.mjs
  • Loading branch information
kariminf authored Oct 15, 2023
2 parents 1f9ce57 + a118fb9 commit 047a258
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 047a258

Please sign in to comment.