Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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

This function is free to use.

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


Text.ConvertUnicodeToCharacterDecomposition - Text.DecodeBytesFromBase64