Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alphabet2kana bug #14

Closed
Cuddlemuffin007 opened this issue Aug 15, 2020 · 0 comments
Closed

alphabet2kana bug #14

Cuddlemuffin007 opened this issue Aug 15, 2020 · 0 comments

Comments

@Cuddlemuffin007
Copy link
Contributor

Cuddlemuffin007 commented Aug 15, 2020

  1. su is converted before tsu leading to words like 'atsui' being converted to 「あっすい」
  2. Trailing oh is converted too soon leaving words like 'itoh' as 「いっおお」
  3. Remaining oh replacements should be done after other replacements, current placement causes words like toho to become 「っおおお」
  4. singular m remains unconverted and becomes 「っ」, e.g., namba => なっば
  5. dzu is not converted, e.g. tsudsuku => っすっずく
>>> from jaconv import alphabet2kana as a2k
>>> a2k('tsudzuku')
'っすっずく'
>>> a2k('namba')
'なっば'
>>> a2k('itoh')
'いっおお'
>>> a2k('toho')
'っおおお'
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants