class Wordcount

Methods

static int
count(string $text)

Given a chunk of text, tell us how many words are in it!

static void
loadLetters()

the list of valid letters is normally generated when wordcount() is called for the first time. If you'd like it to load earlier (since it takes a hot moment), use this handy method!

Details

at line 23
static int count(string $text)

Given a chunk of text, tell us how many words are in it!

Parameters

string $text The text you want a wordcount of, probably in UTF-8 encoding

Return Value

int The wordcount

at line 94
static void loadLetters()

the list of valid letters is normally generated when wordcount() is called for the first time. If you'd like it to load earlier (since it takes a hot moment), use this handy method!

Return Value

void