cijic / phpmorphy

phpMorphy - morphological analyzer library for Russian, English, German and Ukrainian languages.
MIT License
103 stars 37 forks source link

The Russian language does not work #16

Open Impulse-web opened 1 month ago

Impulse-web commented 1 month ago

The Russian language does not work.

Laravel: 10 PHP: 8.0

andrey-helldar commented 2 weeks ago

It works. You need to convert words to uppercase. For example:

use cijic\phpMorphy\Morphy;

$morphy = new Morphy(); // "ru" is default locale

$word = 'телефоны';

print_r(
    $morphy->getPseudoRoot(mb_strtoupper($word))
);

Output is:

Array
(
    [0] => ТЕЛЕФОН
)