text.js

Members

(constant) texts#

Text file content and word count as paragrapshs. filename => { paragraphs: [paragraphs], wordCount: [words per paragraph] }
Source:

Methods

initTexts(mediaPath)#

Reads all text files in *mediaPath* and caches their *paragraphs* and *wordCount*s.
Parameters:
NameTypeDescription
mediaPathstringpath to folder storing text files.
Source:
Returns:
array of filenames found in mediaPath folder.