Measure a text's size, sentence length, vocabulary range and repetition, score it from 0 to 100, and see which analyses it is fit for.
Text quality checker with a score from 0 to 100
What the score is made of
A text starts from 100 and loses points for things that get in the way of analysis: too many symbols, few real words, very long sentences or paragraphs, a vocabulary that is small or keeps repeating, lines and phrases that come back again and again, or simply too little text. From 75 the rating is good, from 60 fair, and below that poor.
What the report shows
Sentence lengths are drawn as a histogram, with the average, the median and the length that nine in ten sentences stay under. TTR, MTLD and HD-D show how wide the vocabulary is. Three bars show how much repeats in lines, in words and in three-word phrases, and a table has every measure with its value.
Which analyses the text is fit for
For each text the report says whether it can carry clustering, LDA topics, BERTopic, sentiment analysis and summarizing. A topic model will accept a text that is too short for it and still return topics, so this is worth knowing before you read meaning into them. With several files, a table puts the figures of all of them side by side.
Clean and check
Get a text ready before you measure anything in it.
Text cleaning and normalization: Strip emoji, stray symbols, repeated punctuation and your own stop words from a text, put its quotation marks, spelling and numbers in one consistent style, and cut long documents into pieces of even length.
Stop word finder: Find the words that turn up everywhere in your material and say little, as a stop word list made for your own field.
Near-duplicate finder: Compare every line by meaning, pair up the ones that say nearly the same thing, and gather them into sets of duplicates.
Duplicate merging: Group the lines that say nearly the same thing, keep one of each group, and mark the rest as merged into it.
Restore punctuation: Turn a transcript or any text without punctuation into sentences with periods, commas and capital letters, grouped into paragraphs, with every word left in its place.
Fix punctuation: Correct the commas, sentence breaks, capital letters, apostrophes, hyphens and spacing of a text that already has punctuation, with every word left as written, and see each sentence that changed.
Paragraph information value: Score every paragraph on entropy, lexical density and information density, and see which ones rate high enough to keep for analysis.
Redaction: Find email addresses, phone numbers, Social Security and card numbers, dates, addresses and names in a text, and replace each with a placeholder, a mask, or nothing.
Spelling check: Find the misspelled words in a text, each with a correction that fits the context and a note on what went wrong, and get the corrected text back. British and American spellings are both accepted.