Remove remote stop words¤
The stop word list is retrieved from a remote URL such as this German stop word list.
Such an overridable stop word list file may be used, for instance, to specify the stop words of a different language, such as German instead of the default stop word list for the English language.
Regardless of the stop word list used, the following comments apply:
- Each line in the stop word list should contain a single stop word.
- The removal of stop words is case-insensitive. For example, ‘The’ and ‘the’ are considered the same.
- In the case of German words, notice that the upper-case letter of the lower-case ‘ß’ is ‘ẞ’, not ‘SS’.
- The separator defines a regular expression (regex) that is used for detecting words.
- By default, the separator is a regular expression for non-whitespace characters.
Additionally, notice the simpler filter ‘removeDefaultStopWords’, which uses a default stop word list.
Examples¤
Notation: List of values are represented via square brackets. Example: [first, second]
represents a list of two values “first” and “second”.
Example 1:
-
Input values:
[To be or not to be, that is the question]
-
Returns:
[To, question]
Example 2:
-
Input values:
[It always seems impossible, until it's done]
-
Returns:
[It impossible, ]
Parameter¤
Stop word list url¤
URL of the stop word list
- ID:
stopWordListUrl
- Datatype:
string
- Default Value:
https://gist.githubusercontent.com/rg089/35e00abf8941d72d419224cfd5b5925d/raw/12d899b70156fd0041fa9778d657330b024b959c/stopwords.txt
Separator¤
RegEx for detecting words
- ID:
separator
- Datatype:
string
- Default Value:
[\s-]+
Advanced Parameter¤
None