From 4b1120b916125e38a1bdfe654881036f908faf0f Mon Sep 17 00:00:00 2001 From: Richard Hull Date: Mon, 19 Oct 2015 09:41:00 +0100 Subject: [PATCH] Formatting --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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: