A set of utilities for authors to get meta data from content and generally to play with words.
var wordify = ;
Get a unique list of words from content.
var list = wordify;
"array" "did" "i" "list" "lots" "make" "of" "returns" "say" "to" "unique" "with" "words"
Returns an object with words and occurrances
var words = wordify;
the: count: 7man: count: 3sat: count: 1on: count: 1cat: count: 4
Break copy up based on the number of words you want in each chunk. Pass in the copy to be chunked, and the number of words in each chunk. Returns an array of strings.
"this should be in first element," "this should be in second element"
Break copy up in varying lengths forming a "wave". Lengths are characters to break into chunks at lengths specified. The length is used to find the closest space. Sizes go up, and then down, and repeated.
"the" "cat sat" "on the mat"
Count the number of words in a string, removing any HTML and punctuation
var count = wordify;
Returns the length of characters in a string. It strips out html and punctuation marks.
Returns the length of characters in a string including punctuation marks.