Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdegenne/kanji2hiragana-map
https://github.com/vdegenne/kanji2hiragana-map
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vdegenne/kanji2hiragana-map
- Owner: vdegenne
- Created: 2024-02-18T09:32:17.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T14:30:24.000Z (11 months ago)
- Last Synced: 2024-02-19T11:40:11.793Z (11 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# kanji2hiragana-map
Pre-built kanji -> hiragana resolution map.
The map can easily be imported in an ESM program:
```js
import k2hmap from 'kanji2hiragana-map' with {type: 'json'};k2hmap['家']; // いえ
```(use `assert` instead of `with` if your development environment doesn't understand the latter.)
## Known limitations
- **This is not an exhaustive map!** It was built from various semi-valid sources and many entries are probably missing from it.
- It's a binary map, and only the most commonly used hiragana for a kanji are mapped (for instance 家 can be written いえ and うち but いえ is used because it appears more often in the literature).