new wordcounter(settings)
Word counting utility
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object | Optional. Key-value object containing overrides for
settings.
Properties
|
- Source:
Returns:
void
Methods
-
<static> WordCounter#count(text, type)
-
Counts the number of words (or other specified type) in the specified text.
Parameters:
Name Type Description textString Text to count elements in. typeString Optional. Specify type to use. - Since:
-
- 2.6.0
- Source:
Returns:
The number of items counted.- Type
- Number