FGRibreau/node-language-detect — Issue #5: Problem in detecting Farsi Language
Author: milani
Created: 2012-01-22 19:07:04+00:00
State: open

Hi,

I tried to use this project in order to detect Farsi ( Persian ) Language. It seems it does not work.

I think the problem is in `ord` function ( phpjs.js:224 ) or in ` _next_char` ( Parser.js:363 ). It does not recognize farsi characters. here is my code:

var ld = require('node-language-detect');

var obj = new ld();

console.log(obj.detect('سلام. این یک متن فارسی است که باید توسط این ماژول شناسایی شود.'));

// it returns []