diff options
| author | Georg Brandl <georg@python.org> | 2011-01-15 15:59:48 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-15 15:59:48 +0100 |
| commit | 8edcb918b534a3eb16636a35fc33426c7783a761 (patch) | |
| tree | 6e9d3a775e021a905530979fc14412ee4f9a5066 /sphinx/search | |
| parent | 61a0082dd44a6d73d8fa0bab5bb99966daca50c4 (diff) | |
| download | sphinx-8edcb918b534a3eb16636a35fc33426c7783a761.tar.gz | |
Make check.
Diffstat (limited to 'sphinx/search')
| -rw-r--r-- | sphinx/search/en.py | 10 | ||||
| -rw-r--r-- | sphinx/search/ja.py | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sphinx/search/en.py b/sphinx/search/en.py index 16e93e89..c342f39c 100644 --- a/sphinx/search/en.py +++ b/sphinx/search/en.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ - sphinx.search_languages.en - ~~~~~~~~~~~~~~~~~~~~~~~~~~ + sphinx.search.en + ~~~~~~~~~~~~~~~~ English search language: includes the JS porter stemmer. @@ -151,7 +151,8 @@ var Stemmer = function() { } // Step 2 - re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|\ +ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; if (re.test(w)) { var fp = re.exec(w); stem = fp[1]; @@ -173,7 +174,8 @@ var Stemmer = function() { } // Step 4 - re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|\ +iti|ous|ive|ize)$/; re2 = /^(.+?)(s|t)(ion)$/; if (re.test(w)) { var fp = re.exec(w); diff --git a/sphinx/search/ja.py b/sphinx/search/ja.py index 18d21bf0..0a7d83a1 100644 --- a/sphinx/search/ja.py +++ b/sphinx/search/ja.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ - sphinx.search_languages.ja - ~~~~~~~~~~~~~~~~~~~~~~~~~~ + sphinx.search.ja + ~~~~~~~~~~~~~~~~ Japanese search language: includes routine to split words. |
