https://github.com/terrierscript/historykana
Japanese furigana library
https://github.com/terrierscript/historykana
Last synced: 3 months ago
JSON representation
Japanese furigana library
- Host: GitHub
- URL: https://github.com/terrierscript/historykana
- Owner: terrierscript
- Created: 2015-03-27T00:43:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T12:57:40.000Z (about 3 years ago)
- Last Synced: 2025-01-16T09:17:58.463Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://terrierscript.github.io/react-auto-kana/
- Size: 185 KB
- Stars: 41
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HistoryKana
Get Japanese ***Furigana*** from input history
[](https://circleci.com/gh/inuscript/historykana)
# Usage
```
var historykana = require("historykana")
// Stock input history
var inputHistory = ["y","や","やm","やま","やまd","やまだ","山田","山田","山田t","山田た","山田たr","山田たろ","山田たろう","山田太郎","山田太郎"]
var historykana(inputHistory)
// => やまだたろう
```
# API
## `historykana(inputHistories, options)`
- `inputHistories` (Required)
- Input History Array
- `options`
- Option object.
## Options
### `kanaRegexp` (=`"^[ ぁあ-んー]*$"`)
Hiragana detection regular expression rule.