What’s the best opensource verb conjugator/deconjugator library?

Not sure where else to ask so asking here.

I did some research and could only find these three libraries for verb deconjugation:

* [https://github.com/jshiohaha/JapaneseVerbConjugator](https://github.com/jshiohaha/JapaneseVerbConjugator)
* [https://github.com/fasiha/kamiya-codec](https://github.com/fasiha/kamiya-codec)
* [https://github.com/mistval/jp-verb-deconjugator](https://github.com/mistval/jp-verb-deconjugator)

The mistval one seems most complete however each of these libraries above have some issues with them. In fact, I ran the unit test on mistval and it actually has some failing test cases. Curious if there are better ones out there

2 comments
  1. Pulling the deconjugation code out of an existing project like yomichan or jglossator might be an option.

    I’ve been using the mistval one, it’s fairly trivial to fix it up. I didn’t look at the test cases, but the main issues I found are missing irregular verbs in the derivation tables, `unconjugateRecursive` needs to be updated to consider adjectives and da as a recursion base case, and ませんでした should deconjugate into stem form instead of ません.

Leave a Reply
You May Also Like