Skip to main content

Module prose

Module prose 

Source
Expand description

Hemingway-style complexity for the seat pack.

A memory a model has to parse twice wastes the 1375 / 2200 caps. The grade is the Automated Readability Index, which is what Hemingway uses. Adverbs, passive be-verbs and long sentences are counted alongside it. No editor binary and no network: the whole check is arithmetic over the text.

Structs§

ProseError
Why text is too complex for the working core.
Report
Readability counts for one piece of text.

Enums§

Role
What the text is being written into.

Constants§

HARD_WORDS
A sentence at or past this many words reads hard.
MAX_ADVERB_RATIO
Adverbs as a fraction of words.
MAX_ATOM_SENTENCES
One claim per atom, and a claim is at most this many sentences.
MAX_GRADE
Hemingway aims at grade 9. Only “very hard” is refused.
VERY_HARD_WORDS
A sentence at or past this many words reads very hard.

Functions§

assess
Grade, ease, and the Hemingway-style counts.
refuse
Refuse text too hard for the working core.