Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: NaturalNode/natural
base: 748a1659bf
...
head fork: NaturalNode/natural
compare: b18325ce71
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jul 24, 2012
geeqie Bug in PorterStemmer.stem while replacing cyrillic "ё" letter. 6a1b4b9
Commits on Jul 25, 2012
@chrisumbel chrisumbel Merge pull request #48 from geeqie/patch-1
Bug in PorterStemmer.stem while replacing cyrillic "ё" letter.
b18325c
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/natural/stemmers/porter_stemmer_ru.js
View
2  lib/natural/stemmers/porter_stemmer_ru.js
@@ -108,7 +108,7 @@ function derivational (token) {
// perform full stemming algorithm on a single word
PorterStemmer.stem = function(token) {
- token = token.toLowerCase().replace(/ё/g, 'e');
+ token = token.toLowerCase().replace(/ё/g, 'е');
var volwesRegexp = /^(.*?[аеиоюяуыиэ])(.*)$/g;
var RV = volwesRegexp.exec(token);
if (!RV || RV.length < 3) {

No commit comments for this range

Something went wrong with that request. Please try again.