[PEAR-BUG] Bug #21196 [Com]: Wrong dectecting of Russian text on languagedetect.org.

[email protected] ("[email protected]") Sat, 18 Mar 2017 15:33:25 -0400 (EDT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=21196&edit=1

 ID:               21196
 Comment by:       demjanich at ya dot ru
 Reported By:      demjanich at ya dot ru
 Summary:          Wrong dectecting of Russian text on
                    languagedetect.org.
 Status:           Open
 Type:             Bug
 Package:          Text_LanguageDetect
 Package Version:  Unknown
 PHP Version:      5.6.30
 Roadmap Versions: 
 New Comment:

Russian text:

"
У меня степень по астрофизике.
Здорово, тебе будет гораздо проще
смотреть на звезды без крыши над
головой.
Доброе утро.
Ты знала, что Радж съехал прошлой
ночью?
Что? Почему?
Леонадр и Пенни, простите за все
проблемы, что я создал.
Я переезжаю к Говарду.
"


Previous Comments:
------------------------------------------------------------------------

[2017-03-18 15:28:39] demjanich

Description:
------------
Wrong dectecting of Russian text on languagedetect.org.




Test script:
---------------
Russian text:

"
? ???? ??????? ?? ???????????.
???????, ???? ????? ??????? ????? ???????? ?? ?????? ??? ????? 
??? ???????.
?????? ????.
?? ?????, ??? ???? ?????? ??????? ??????
???? ???????
??????? ? ?????, ???????? ?? ??? ????????, ??? ? ??????.
? ????????? ? ???????.
"

But program wrote:

Text_LanguageDetect thinks this text is written in Croatian 
(0.219230769231, 
0.0284615384615)


Expected result:
----------------
The text is in Russian, not Croatian

Actual result:
--------------
--

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=21196&edit=1