Tinderbox v9 Icon

String.wordCount()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

 Property  [other Property type actions]

 Item  [operators of similar scope]

 Data manipulation  [other Data manipulation operators]

 9.5.2

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


String.wordCount()

String.wordCount

From v9.5.2, String.wordCount returns the number of words in a string. The string is first scanned to determine its dominant language, and the word count is based on the conventions of that language (q.v. $WordCount). If the language cannot be determined or if it is not known to macOS, the conventions of English are used.