Skip to content

terrierscript/historykana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HistoryKana

Get Japanese Furigana from input history

Circle CI

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.