text →
token-count(
    separator: text
) → integer

Returns the count of token within the argument value. By default, the tokenization is executed based on any white-space characters. If a character is specified then the tokenization is executed based on this character to separate two tokens.

Parameters

Name Type Required Description
separator text Yes A character that delimits the substrings in this instance.

Examples

"Hello World" | token-count(" ")  2

Kind: Function
Scope: text/tokenization
Aliases: text-to-token-count


This site uses Just the Docs, a documentation theme for Jekyll.