Open Impulse-web opened 1 month 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] => ТЕЛЕФОН
)
The Russian language does not work.
Laravel: 10 PHP: 8.0