diff --git a/README.md b/README.md index 89ca2bd..0c221b3 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,14 @@ This stemming module for Node.js provides stemming capability for a variety of l That allow you to get from a word a reduced, inflected (or sometimes derived) word from the original word stem, base or root. Examples: -> A stemmer for English, for example, should identify the string "cats" (and possibly "catlike", "catty" etc.) as based on the root "cat", and "stemmer", "stemming", "stemmed" as based on "stem". A stemming algorithm reduces the words "fishing", "fished", and "fisher" to the root word, "fish". On the other hand, "argue", "argued", "argues", "arguing", and "argus" reduce to the stem "argu" (illustrating the case where the stem is not itself a word or root) but "argument" and "arguments" reduce to the stem "argument". +> A stemmer for English, for example, should identify the string "cats" (and possibly "catlike", "catty" etc.) +> as based on the root "cat", and "stemmer", "stemming", "stemmed" as based on "stem". A stemming algorithm +> reduces the words "fishing", "fished", and "fisher" to the root word, "fish". On the other hand, "argue", +> "argued", "argues", "arguing", and "argus" reduce to the stem "argu" (illustrating the case where the stem +> is not itself a word or root) but "argument" and "arguments" reduce to the stem "argument". This library is using bindings to the [libstemmer](http://snowball.tartarus.org/download.php) C library. -It's support +It's support More about Stemming: - [Stemming wikipedia](http://en.wikipedia.org/wiki/Stemming) @@ -43,10 +47,10 @@ snowball.stemword(['continuation', 'contrainte'], 'french'); // ['continu', 'con ``` javascript snowball.stemword( - word || words, // The word or group of words that you need the stemming from - language, // The language (optional, default is "english") - encoding // The text encoding (optional, default is "UTF-8") -); + word || words, // The word or group of words that you need the stemming from + language, // The language (optional, default is "english") + encoding // The text encoding (optional, default is "UTF-8") +); ``` ### Supported language second argument: