You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v3.1.1: readability scores restored, lexical density from spaCy
compute_readability in scripts/stylometry.py returned {} on every textstat release, because it called textstat.word_count, which textstat does not have, and one bare except discarded all five scores. Each score is now computed on its own, so Flesch-Kincaid grade, Gunning Fog, Flesch reading ease and syllables per word are back. Reported by Michael Wheatland in issue #1.
lexical_density moved from the textstat tier to the spaCy tier under deep_syntactic. It is now content words (nouns, proper nouns, verbs, adjectives, adverbs) divided by all alphabetic words. The old formula would have been 1.0 for every text once the missing call was replaced. Both report renderers read the new key.
New tests/test_optional_tiers.py checks that both optional tiers return numbers when their libraries are installed. The checks workflow installs textstat, spaCy and en_core_web_sm so these tests run there.