polm / cutlet

Japanese to romaji converter in Python
https://polm.github.io/cutlet/
MIT License
286 stars 20 forks source link

Handle Odoriji across word boundaries #58

Open polm opened 2 months ago

polm commented 2 months ago

Came up in #55, but odoriji across word boundaries do not work. The logic for handling odoriji is there, but currently the romaji word conversion doesn't have access to the kana for the previous token.

Example:

那々緒

The correct reading for this is Nanao, but since that's not in the dictionary it should at least be possible to get Nana Itoguchi or something.