extracao-de-metricas-estilisticas-cognitivo-literarias

Computes lexical richness, Flesch-PT readability, and sentence rhythm into an authorial style vector.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill extracao-de-metricas-estilisticas-cognitivo-literarias-ryanzucchi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extracao-de-metricas-estilisticas-cognitivo-literarias
Source: https://github.com/Ryanzucchi/Eldritch_Lich/tree/main/.agents/skills/extracao-de-metricas-estilisticas-cognitivo-literarias
Command: npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill extracao-de-metricas-estilisticas-cognitivo-literarias-ryanzucchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writers using AI-assisted prose generation need an objective way to verify that generated text matches their own authorial voice. This Skill computes a multidimensional mathematical style signature from Portuguese prose and measures the stylistic distance between AI-generated text and the author's reference corpus. ## Core Features & Use Cases - Lexical Richness (Type-Token Ratio): Counts unique content lemmas versus total content words to quantify vocabulary diversity. - Flesch-PT Readability: Applies the Portuguese-adapted Flesch formula (248.835 - 1.015 x ASL - 84.6 x ASW) instead of the English-calibrated original. - Cadence Analysis: Measures the standard deviation of sentence lengths to capture rhythmic variability. - Style Drift Score: Computes the Euclidean distance between the current text vector and the author's calibrated reference vector, flagging drift above a configurable threshold. - Use Case: A novelist asks the AI to rewrite a chapter; the Skill compares the rewritten passage against 5,000 words of the author's prior writing and reports a drift score of 0.41 with a verbosity warning. ## Quick Start Analyze this AI-generated paragraph against my calibrated author style corpus and tell me the stylistic distance score.

Frequently Asked Questions about extracao-de-metricas-estilisticas-cognitivo-literarias

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure writing style consistency between AI text and my own writing?

Compute a style vector containing type-token ratio, Flesch-PT readability, and sentence-length standard deviation for both texts, then calculate the Euclidean distance between them. A distance below the configured threshold (default 0.25) indicates the text stays within the author's style zone.

What readability formula works for Portuguese text?

Use the Flesch-PT adaptation: 248.835 minus 1.015 times average sentence length minus 84.6 times average syllables per word. The original English Flesch-Kincaid constants produce systematically inflated scores for Portuguese because its words average more syllables.

Which NLP libraries support Portuguese lemmatization and syllable counting?

spaCy with the pt_core_news_lg model provides Portuguese tokenization and lemmatization, while NLTK or Pyphen can be adapted for syllable counting. These are required to filter content words (nouns, verbs, adjectives, adverbs) for the lexical richness metric.

How much reference text is needed to calibrate an author style profile?

A minimum of 3 chapters or 5,000 words of manually written text is required to calibrate the author's reference style vector. Smaller corpora produce unstable baseline metrics that make drift detection unreliable.

When should I not use stylometric drift analysis?

Avoid it for fixed-form poetry such as sonnets or haiku, where sentence length and syllable counts follow metrical rules rather than stylistic choice. It is also unsuitable for simple grammar or spelling checks, which standard proofreading tools handle.