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.
// 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, 'པའིཉམངོན' ] ]
*/