LD
Tools & Demos

Run Real Linguistic Analysis

Working linguistic feature extraction, in your browser. Every tool states what it measures, cites the canonical source, and says exactly where your text goes. These are demos, not replacements for research-grade tooling.

Lexical Diversity & Cohesion

Live

Tokenization, lexical diversity (TTR, MATTR, MTLD, HD-D), lexical density, repeated n-grams, adjacent-sentence content-word overlap, and connective density. Lexical density uses a function-word list rather than a POS tagger.

MTLD & HD-D: McCarthy & Jarvis (2010). MATTR: Covington & McFall (2010). Cohesion indices in the spirit of TAACO: Crossley, Kyle & McNamara (2016).

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Semantic Similarity & Embeddings

Live

Sentence embeddings from a BERT-family transformer, cosine similarity between two texts, a 2-D PCA projection of sentence embeddings, and a token-level similarity heatmap.

Model: Xenova/all-MiniLM-L6-v2 (BERT-family sentence transformer), 8-bit quantized, via transformers.js. WebGPU with WASM fallback.

This tool downloads a quantized transformer model (Xenova/all-MiniLM-L6-v2, 8-bit, ~25 MB) and runs it in your browser via WebGPU, falling back to WASM. Nothing is uploaded anywhere.

Model downloads to and runs in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Syntactic Parsing & Complexity (spaCy)

Live

Part-of-speech tags and a dependency parse with an arc diagram, plus live dependency-based complexity measures: tree depth and mean dependency distance.

Parser: spaCy en_core_web_sm running in a single stateless serverless function. If the function is unavailable, a hand-annotated UD-style example is shown and labeled as such.

Your text is sent to a stateless function, parsed in memory, and never stored · Demo: not a replacement for research-grade tooling.

KWIC Concordancer

Live

Keyword-in-context concordance: every occurrence of your keyword, aligned in a column with its left and right context, the reading view corpus linguistics is built on.

Concordancing is standard corpus-linguistic practice; see e.g. Sinclair (1991), Corpus, Concordance, Collocation.

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Keyness (Log-Likelihood)

Live

Which words are characteristic of corpus A versus corpus B? Log-likelihood compares each word's frequency against its expected frequency under a shared model; higher values mean stronger keyness.

Dunning (1993); Rayson & Garside (2000). Words with combined frequency < 3 are skipped.

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Collocation Strength (MI & t-score)

Live

Collocates of a node word within a ±4 window, ranked by mutual information, with t-scores alongside. MI favors exclusive pairings; t favors frequent ones.

Church & Hanks (1990). Collocates with fewer than 2 co-occurrences are skipped.

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Readability (Flesch & Flesch-Kincaid)

Live

Flesch Reading Ease and Flesch-Kincaid grade level from word, sentence, and syllable counts. Syllables are counted with a vowel-group heuristic, so scores are approximate.

Kincaid, Fishburne, Rogers & Chissom (1975).

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

VADER Sentiment

Live

Lexicon- and rule-based sentiment scoring tuned for social media text: compound score plus positive/neutral/negative proportions.

Hutto & Gilbert (2014). Runs via the Apache-2.0 vader-sentiment JS port, loaded on demand.

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Zipf Rank-Frequency Plot

Live

Word frequency against frequency rank on log-log axes. Natural language famously falls near a straight line with slope −1: Zipf's law.

Zipf (1949), Human Behavior and the Principle of Least Effort.

Runs entirely in your browser; your text never leaves this device · Demo: not a replacement for research-grade tooling.

Feature Engineering

POS-Based Text Vectorization

Live

Turns a text into a labeled vector over the 17 Universal Dependencies UPOS categories: the register fingerprint used in multi-feature analyses. Toggle raw counts, per-100-tokens, or relative proportion; compare two texts side by side with cosine similarity.

Multi-feature register analysis: Biber (1988). Tagger: spaCy en_core_web_sm.

Normalization: per 100 tokens: count / total × 100.

Your text is sent to a stateless function, parsed in memory, and never stored · Demo: not a replacement for research-grade tooling.

Dependency-Label Text Vectorization

Live

The same treatment over syntactic relations: a vector over the top ~20 dependency labels by frequency (rest binned as 'other'). Toggle normalization; compare two texts with cosine similarity over the normalized vectors.

Multi-feature register analysis: Biber (1988). Parser: spaCy en_core_web_sm.

Normalization: per 100 tokens: count / total × 100.

Your text is sent to a stateless function, parsed in memory, and never stored · Demo: not a replacement for research-grade tooling.

Sample texts are short essays written for this site as illustrative input, labeled L1 and L2; they are not drawn from any research corpus.