Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Text.CountWords

Counts words.

Component Version macOS Windows Linux Server iOS SDK
Text 8.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.CountWords"; Text )   More

Parameters

Parameter Description Example
Text The text to count words. "Hello World Hello"

Result

Returns list or error.

Description

Counts words.
We split the text into words and then count for each how often it happens.
The result contains count, tab and the word and is not sorted.

Examples

Count words:

MBS( "Text.CountWords"; "Hello World Hello" )

Example result:
1   World
2   Hello

Works with umlauts:

MBS( "Text.CountWords"; "ä ö ü ä ö ö ö ö ß ß" )

Example result:
2   ß
2   ä
5   ö
1   ü

See also

Release notes

Example Databases

Blog Entries

Created 5th February 2018, last changed 9th February 2020


Text.ConvertUnicodeToCharacterDecomposition - Text.DecodeBytesFromBase64

Feedback: Report problem or ask question.