Text analysis

StringKit-FP includes light-weight helpers for inspecting English-like text.

FunctionUse
CountWordscount words in a passage
GetWordsreturn words as TStringDynArray
FleschReadingEaseestimate reading ease; higher is generally easier
FleschKincaidGradeLevelestimate a school-grade reading level
GenerateNGramscreate word n-grams

The compiled readability recipe formats a score to two decimal places. The calculations use heuristic English syllable counts and byte-oriented word handling, so treat them as quick signals rather than a linguistic analysis.

For pattern extraction, use ExtractAllMatches with Free Pascal RegExpr syntax. The regular-expression recipe compiles and prints each match.