Text processing
Slugs, case conversion, diffs, regex, keywords, token estimates, edit distance, readability, PII redaction.
Slugify
POST /api/slugifyTurn any text into a URL-safe slug (lowercase, hyphenated, diacritics stripped).
try in playground →Case convert
POST /api/caseConvert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower, UPPER.
try in playground →Text statistics
POST /api/text-statsCharacters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.
try in playground →Keyword extraction
POST /api/keywordsTop keywords and two-word phrases by frequency (stopwords removed). Cheap, deterministic signal for routing, tagging, an…
try in playground →Text diff
POST /api/text-diffLine-by-line diff of two texts (LCS). Returns unified-style ops and change counts. Up to 2000 lines per side.
try in playground →Regex test
POST /api/regexRun a regular expression against text. Returns up to 100 matches with index and capture groups. Pattern ≤ 200 chars, tex…
try in playground →Lorem ipsum
GET /api/loremPlaceholder text. ?paragraphs=1..20 or ?words=1..2000.
try in playground →Count
POST /api/countCount characters, words, lines, and (optionally) occurrences of a substring in text.
try in playground →Truncate
POST /api/truncateTruncate text to a maximum length, adding an ellipsis (or custom suffix). Optionally break on word boundaries.
try in playground →Sort lines
POST /api/sort-linesSort the lines of a text. order: asc (default) | desc | numeric. unique:true removes duplicates; ci:true is case-insensi…
try in playground →Dedupe lines
POST /api/dedupe-linesRemove duplicate lines, preserving first-seen order. Returns the deduped text and how many were removed.
try in playground →Edit distance
POST /api/levenshteinLevenshtein edit distance between two strings, plus a 0-1 similarity ratio.
try in playground →Redact PII
POST /api/redactMask emails, phone numbers, credit-card-like numbers, IPs, and SSNs in text. Returns the redacted text and counts by typ…
try in playground →Extract entities
POST /api/extract-entitiesPull emails, URLs, IPv4s, @mentions, and #hashtags out of free text. Returns deduped lists.
try in playground →Readability
POST /api/readabilityFlesch Reading Ease score and Flesch–Kincaid grade level for English text, plus word/sentence/syllable counts.
try in playground →Token count
POST /api/token-countCount exact LLM tokens for a string using the real OpenAI BPE (o200k_base for gpt-4o/o-series, cl100k_base for gpt-4/gpt…
try in playground →Text chunk (RAG)
POST /api/text-chunkSplit text into overlapping chunks for RAG ingestion - by characters (default) or by exact LLM tokens. Returns the chunk…
try in playground →Readability score
POST /api/readability-scoreCompute Flesch-Kincaid Grade Level, Flesch Reading Ease, Gunning Fog Index, and Automated Readability Index from text. R…
try in playground →