
 Usage: semkit read [IN] text-stats [OPTIONS]

 The usual SEO metrics of each text, the same numbers each run: a metric column per metric, a row
 per text.

 A cell is a text; an empty cell gives zeros and an empty top. The metric columns are added right
 after the column of the texts.

 The words are those of split-text: punctuation at the edges of a word is dropped, a hyphen or an
 apostrophe inside a word stays («кресло-кровать» is one word), a number with inner points, commas
 or hyphens is one word («31.03.2026»); case and ё are folded. Stopwords are the bundled list of
 the n-grams. Lemmas are the words that are no stopwords. A single-letter word, an abbreviation (г,
 ул, руб, шт, кв, стр…) and a unit (рублей, см, мм, мл, кг) of the bundled word rules are words but
 no lemmas for top, nausea, ttr, mtld and zipf.
 no_digits: leave out the words with a digit («2026», «15000», «A4») of every count, the words
 total included, as if the text did not hold them; chars and chars_no_spaces stay those of the text
 as given.
 exclude: words to leave out the same way, as written, with case and ё folded, not by lemma («года»
 does not leave out «год»).

 The columns, in this order:
 - chars: all characters of the text; chars_no_spaces: the same without whitespace;
 - words: the words of the text, stopwords, abbreviations and units included;
 - unique: distinct lemmas;
 - water: stopwords / words, 0..1;
 - nausea_classic: the square root of the count of the most frequent lemma (the top), 2 decimals;
 - nausea_academic: that count / words, 0..1;
 - top: that lemma; on a tie, the first in the text;
 - ttr: distinct lemmas / lemmas, 0..1;
 - mtld: Measure of Textual Lexical Diversity (McCarthy and Jarvis 2010), threshold 0.72: read the
 lemmas forward, each time the running type/token ratio falls to 0.72 or below, count a factor and
 restart; the last partial run adds (1 - ttr) / (1 - 0.72); do it backward too; mtld = lemmas /
 mean of the two factor counts, 2 decimals; 0 for under 2 lemmas;
 - zipf: R² x 100, 1 decimal, of the linear regression of log count on log rank over the lemma
 counts (rank 1 is the biggest count), so f(r) = C / r^s fits; 0 for under 5 distinct lemmas.

 No norms and no verdicts: the caller sets them.

 Example: semkit read --text "Купить диван в Москве. Диван угловой, диван недорогой." text-stats
 write -
 -> Купить диван в Москве. Диван угловой, диван недорогой., 54, 47, 8, 5, 0.125, 1.73, 0.375,
 диван, 0.7142857142857143, 7.0, 70.9

 The step reads the working column and adds the metric columns right after it; the rows stay.

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --no-digits               leave out the words with a digit («2026», «15000», «A4») of every      │
│                           count, the words total included, as if the text did not hold them;     │
│                           chars and chars_no_spaces stay those of the text as given.             │
│ --exclude          <str>  words to leave out the same way, as written, with case and ё folded,   │
│                           not by lemma («года» does not leave out «год»). Items: a comma list    │
│                           'a,b', @FILE (one item per line, or the first column of a table) or    │
│                           @NAME of a list.                                                       │
│ --help                    Show this message and exit.                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

 Lists for @NAME: @combine/kiev-region-towns, @combine/leningrad-region-villages,
 @combine/moscow-hotels, @combine/moscow-metro, @combine/moscow-region-villages,
 @combine/realty-object, @combine/realty-service, @combine/review, @combine/russia-cities-100k,
 @combine/russia-cities-250k, @combine/russia-cities-500k, @combine/shop, @combine/spb-hotels,
 @combine/spb-metro, @combine/tourism, @combine/tourism/austria, @combine/tourism/baltic,
 @combine/tourism/benelux, @combine/tourism/bulgaria, @combine/tourism/canada,
 @combine/tourism/caribbean, @combine/tourism/china, @combine/tourism/croatia,
 @combine/tourism/cyprus, @combine/tourism/czech, @combine/tourism/egypt, @combine/tourism/france,
 @combine/tourism/germany, @combine/tourism/greece, @combine/tourism/hungary,
 @combine/tourism/india, @combine/tourism/indonesia, @combine/tourism/israel,
 @combine/tourism/italy, @combine/tourism/malaysia, @combine/tourism/mexico,
 @combine/tourism/montenegro, @combine/tourism/poland, @combine/tourism/portugal,
 @combine/tourism/scandinavia, @combine/tourism/spain, @combine/tourism/switzerland,
 @combine/tourism/thailand, @combine/tourism/turkey, @combine/tourism/uae, @combine/tourism/uk,
 @combine/tourism/usa, @combine/ukraine-cities-100k, @combine/ukraine-cities-250k, @markers/DIY,
 @markers/MO, @markers/cars, @markers/citiesRu, @markers/color, @markers/districts, @markers/edu,
 @markers/fun, @markers/game, @markers/geo, @markers/material, @markers/mosmetro, @markers/names,
 @markers/origin, @markers/questions, @markers/rent, @markers/reviews, @markers/sale,
 @meaning/neutral, @meaning/question, @minus/abusive, @minus/adult-hard, @minus/adult-soft,
 @minus/belarus-cities, @minus/cheap, @minus/computer, @minus/countries, @minus/ex-ussr-cities,
 @minus/free, @minus/handmade, @minus/kazakhstan-cities, @minus/moscow-region-cities,
 @minus/russia-cities, @minus/ukraine-cities, @minus/universal, @minus/world-cities,
 @stop/semtools, @stop/wordstat. Run 'semkit lists' for their sources and descriptions.


