From:  pear-qa@lists.php.net ("demjanich@ya.ru")
Date:  19 Mar 2017 03:33:25 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

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

NNTP-Posting-Host:  null

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