{"id":24538,"library":"romkan2","title":"romkan2","description":"A Python library for converting between Romaji (Romanized Japanese) and Kana (Hiragana/Katakana). It supports both to_romaji and to_kana conversions. Current version 0.1.1, released 2025, with no fixed release cadence.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/altescy/romkan2","tags":["romaji","kana","japanese","conversion"],"install":[{"cmd":"pip install romkan2","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"romkan2 is a separate library from romkan; functions not available in romkan2 from the romkan package.","wrong":"import romkan; romkan.to_romaji","symbol":"to_romaji","correct":"from romkan2 import to_romaji"},{"note":"","wrong":"","symbol":"to_kana","correct":"from romkan2 import to_kana"}],"quickstart":{"code":"from romkan2 import to_romaji, to_kana\n\nprint(to_romaji('こんにちは'))  # konnnichiha\nprint(to_kana('konnnichiha'))    # こんにちは","lang":"python","description":"Convert between Romaji and Kana."},"warnings":[{"fix":"Use 'to_kana' to reverse; accept double n as standard Hepburn.","message":"The 'to_romaji' function may return 'konnnichiha' (with double n) for 'こんにちは' due to Hepburn romanization rules; not a bug.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need custom systems, consider using 'pykakasi' instead.","message":"Unlike the older 'romkan' library, 'romkan2' does not support custom romanization systems or extended conversions like 'to_hepburn'.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install romkan2","cause":"Library not installed or installed under a different name.","error":"ModuleNotFoundError: No module named 'romkan2'"},{"fix":"pip install --upgrade romkan2","cause":"Possible installation corruption or very old version (pre-0.1.0).","error":"ImportError: cannot import name 'to_romaji' from 'romkan2'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}