Namespace atropa.regex
Version
20120909.
Container for regex functions.
Defined in: <node_modules/atropa-regex/src/atropa-regex.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Container for regex functions.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
atropa.regex.appendPrefixesAndSuffixes(word, threshold)
Appends common prefix, suffix, and word boundary regex strings to
the supplied word.
|
Method Detail
<static>
{String}
atropa.regex.appendPrefixesAndSuffixes(word, threshold)
Appends common prefix, suffix, and word boundary regex strings to
the supplied word.
Author: Matthew Christopher Kastor-Inare III
☭ Hial Atropa!! ☭.
Author: Matthew Christopher Kastor-Inare III
☭ Hial Atropa!! ☭.
- Parameters:
- {String} word
- The word to append prefix and suffix to
- {Integer} threshold
- The word.length at which it does not make sense to append prefix and suffix. Defaults to 3.
- Returns:
- {String} Returns the supplied word with prefix, suffix, and word boundaries attached. If the word.length was not greater than the threshold, only word boundaries are attached. The string represents a RegEx which should pick out most forms of regular words.