Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 883 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 883 Bytes

checkTibetan_1.0.2

Build Status

Only show coordinate and syllable length for tagging

Input content ,and output will show array of coordinates like : [ 401, 3, 'ཤཱམ' ].

It means the wrong syllable starts at position 401 ,syllable length is 3 ,and the syllable is 'ཤཱམ'

Data is imported from tibetan-spellchecker.

Usage

// main.js
var fs = require("fs");
var content = fs.readFileSync("./spellchecktest.xml", "utf8");
var checkSyllables = require("check-tibetan").checkSyllables;

var out = checkSyllables(content); 
/*out
[ [ 87, 5, 'ཀྲྀརྞ' ],
  [ 93, 3, 'པཅི' ],
  [ 105, 3, 'ཙཱབ' ],
  [ 224, 8, 'པའིཉམངོན' ] ]
*/