polm/cutlet
Japanese to romaji converter in Python
What it solves
Cutlet provides a way to convert Japanese text into romaji (Latin alphabet) using various romanization systems, ensuring that proper nouns are capitalized and specific word exceptions are handled correctly.
How it works
It uses the fugashi library for tokenization and supports multiple romanization standards, including Modified Hepburn, Kunreisiki, and Nihonsiki. It can leverage UniDic dictionaries to use foreign spellings when available and allows users to define custom overrides for individual mappings or specific words.
Who it’s for
Developers who need to programmatically convert Japanese text to romaji for applications, URL slug generation, or linguistic analysis.
Highlights
- Supports Modified Hepburn, Kunreisiki, and Nihonsiki systems.
- Includes a built-in exceptions list for common names like Tokyo and Osaka.
- Features a "slug mode" specifically for generating URL-friendly strings.
- Allows custom overrides for specific words and mappings.
- Integrates with UniDic for foreign spelling support.
Related
- Project
- Project
- Project
- Project