An open API service indexing awesome lists of open source software.

https://github.com/terrierscript/historykana

Japanese furigana library
https://github.com/terrierscript/historykana

Last synced: 3 months ago
JSON representation

Japanese furigana library

Awesome Lists containing this project

README

          

# HistoryKana
Get Japanese ***Furigana*** from input history

[![Circle CI](https://circleci.com/gh/inuscript/historykana.svg?style=svg)](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.