wc: Count Words of a String

Description Usage Arguments Details Value

Description

See title.

Usage

1
wc(string, maxwordlen = 16, maxsenlen = 20, maxsyllen = 10)

Arguments

string

A string.

maxwordlen

Maximum length of words to consider.

maxsenlen

Maximum length of sentences to consider.

maxsyllen

Maximum length of syllables to consider.

Details

The basic logic is to call a word something separated by one or more "spaces" (literal space, tab, ...). Special treatment is given to multiline text with a dangling dash.

Value

The number of words.


wrathematics/TAG documentation built on May 20, 2019, 11:37 a.m.