Skip to content

Commit

Permalink
Some improvements in Russian stemmer.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Jan 6, 2023
1 parent e906ef5 commit 48207ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/S2/Rose/Stemmer/PorterStemmerRussian.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ class PorterStemmerRussian extends AbstractStemmer implements StemmerInterface
'экзамен' => '',
'экзамена' => 'экзамен',
'экзамены' => 'экзамен',

'метро' => '',
'кино' => '',
'фото' => '',
'массив' => '',
'метро' => '',
'кино' => '',
'фото' => '',

'один' => '',
'одного' => 'один',
Expand All @@ -239,6 +239,9 @@ class PorterStemmerRussian extends AbstractStemmer implements StemmerInterface
'одной' => 'одна',
'одну' => 'одна',

'татьяна' => 'татьян',
'татьяны' => 'татьян',

'он' => '',
'его' => 'он',
'него' => 'он',
Expand Down

0 comments on commit 48207ce

Please sign in to comment.