Writing Style Analyzer — Tone, Formality & Sentiment

Analyze Writing Style

Paste your text below to measure formality, tone, sentiment, vocabulary diversity, and sentence variety. Everything runs in your browser — nothing is sent to a server.

Style Radar

Style Dimensions

Tone & Sentiment

Sentence Length Distribution

Style Recommendations

What Is Writing Style Analysis?

Writing style analysis is the computational study of how a text communicates beyond its literal content. While grammar checkers focus on correctness and readability scores focus on difficulty, style analysis examines the personality of the writing itself: its formality level, its emotional tone, its persuasive posture, and its linguistic variety. These dimensions determine how readers perceive the author and whether the writing achieves its intended effect on its target audience.

The distinction between what you say and how you say it is the core concern of style analysis. Two texts can convey the same factual information while creating entirely different impressions. "The quarterly results exceeded projections" versus "We crushed it this quarter!" deliver the same news but signal different contexts: the first fits a shareholder report, the second fits a Slack channel. Style analysis quantifies these differences so writers can make deliberate choices about register, tone, and emotional valence rather than relying on intuition alone.

This tool measures five primary dimensions of writing style. Formality scores your text on a spectrum from casual conversation to academic prose by analyzing word length, contractions, pronoun usage, and vocabulary sophistication. Tone classifies the dominant communicative posture as confident, tentative, aggressive, or neutral based on modal verbs, hedging language, and assertion patterns. Sentiment measures emotional polarity across a positive-neutral-negative spectrum. Vocabulary diversity calculates the type-token ratio to assess lexical richness. Sentence variety examines the distribution of sentence lengths to gauge rhythmic variation.

How Formality Scoring Works

The formality score combines six linguistic signals into a composite score on a 0-100 scale. Average word length contributes positively: longer words (often Latin or Greek-derived) are associated with formal registers, while shorter Anglo-Saxon words dominate casual speech. Contraction frequency contributes negatively: contractions like "don't," "can't," "won't," "it's," and "they're" are hallmarks of informal writing. First-person pronoun density (I, me, my, we, our) lowers the score because formal writing tends toward impersonal constructions. Passive voice frequency raises the score since passive constructions are characteristic of academic, scientific, and legal writing. Nominalization density (words ending in -tion, -ment, -ness, -ity) increases formality because these abstract nouns are more common in formal registers. Sentence length contributes positively: formal writing tends toward longer, more complex sentences with subordinate clauses.

The resulting score maps to five formality bands: 0-20 is "Very Casual" (texting, social media), 21-40 is "Casual" (blog posts, emails to friends), 41-60 is "Neutral" (business emails, news articles), 61-80 is "Formal" (reports, white papers), and 81-100 is "Academic" (research papers, legal documents). Most web content falls in the 35-55 range, which balances accessibility with credibility.

How Tone Detection Works

Tone detection classifies the dominant communicative posture of the text by analyzing four linguistic marker categories. Confident markers include strong assertions ("clearly," "obviously," "certainly," "undoubtedly"), definitive verbs ("proves," "demonstrates," "establishes"), and short declarative sentences that make claims without hedging. Tentative markers include hedging language ("perhaps," "possibly," "might," "could," "seems," "appears"), qualifying phrases ("to some extent," "in certain cases"), and conditional constructions. Aggressive markers include imperative verbs ("must," "stop," "demand"), negative intensifiers ("never," "absolutely not"), exclamation marks, and confrontational vocabulary. Neutral markers are characterized by the absence of strong markers in any other category, balanced sentence structures, and factual reporting language.

The tone with the highest normalized score is reported as the dominant tone. If two tones score within 10% of each other, both are displayed as co-dominant. Texts can also exhibit different tones in different sections; the overall classification represents the aggregate tendency across the entire input.

Sentiment Analysis Methodology

Sentiment analysis uses a lexicon-based approach with approximately 2,000 positive words and 2,000 negative words weighted by intensity. Strong positive words ("excellent," "outstanding," "brilliant") receive higher weights than mild positive words ("good," "nice," "okay"). Similarly, strong negative words ("terrible," "disastrous," "catastrophic") outweigh mild negatives ("bad," "poor," "lacking"). Negation handling reverses the polarity of the following word: "not good" is scored as negative rather than positive. The aggregate polarity score is normalized to a -1.0 to +1.0 scale and classified into five bands: strongly negative (-1.0 to -0.3), negative (-0.3 to -0.1), neutral (-0.1 to +0.1), positive (+0.1 to +0.3), and strongly positive (+0.3 to +1.0).

Vocabulary Diversity and Sentence Variety

Vocabulary diversity is measured using the type-token ratio (TTR): the number of unique word forms divided by the total number of words. A TTR of 0.70 means 70% of words are unique. Because TTR naturally decreases as text length increases (common words must be repeated more often in longer texts), this tool also computes the moving-average TTR (MATTR), which calculates TTR over a sliding window of 50 words and averages the results. This produces a more stable metric across texts of different lengths.

Sentence variety is assessed by analyzing the distribution of sentence lengths (in words). High variety means sentences range from short punchy statements (5-10 words) to longer complex constructions (25-40 words). The tool computes the coefficient of variation (standard deviation divided by mean) of sentence lengths. A CV above 0.50 indicates good variety, while a CV below 0.30 suggests monotonous rhythm. The sentence length distribution is visualized as a histogram showing how many sentences fall into each length bracket.

The Radar Chart Visualization

The radar chart (also called a spider chart or polar chart) plots all five style dimensions on axes radiating from a center point. Each axis runs from 0 at the center to 100 at the periphery, with the plotted point representing the text's score on that dimension. The resulting polygon shape provides an instant visual fingerprint of the text's style profile. A balanced polygon suggests well-rounded writing, while a strongly asymmetric shape highlights dominant or weak dimensions. Comparing radar charts from different texts or different drafts of the same text reveals exactly which style dimensions changed and by how much.

Privacy and Performance

This writing style analyzer processes everything client-side in your browser using JavaScript. No text data is transmitted to any server. Analysis completes in under 100 milliseconds for texts under 10,000 words. The radar chart is rendered on an HTML5 Canvas element. For related text analysis, the main Enhio text analyzer provides readability scores and word frequency analysis. For image-related tasks, Krzen offers compression tools. Developers building NLP pipelines may find HeyTensor's tensor utilities useful for embedding and tokenization workflows.

Need Full Text Analysis?

The main Enhio tool adds readability scores, sentence analysis, tone detection, and SEO keyword checking.

Open Full Analyzer

Frequently Asked Questions

What does a writing style analyzer measure?

A writing style analyzer measures multiple dimensions of your prose including formality level (casual to academic), dominant tone (confident, tentative, aggressive, or neutral), sentiment polarity (positive, negative, or neutral), vocabulary diversity via the type-token ratio, and sentence variety by comparing sentence length distribution. Together these metrics create a comprehensive profile of how your writing sounds to readers and whether it matches your intended audience.

What is the type-token ratio and why does it matter?

The type-token ratio (TTR) divides the number of unique words (types) by the total number of words (tokens) in your text. A TTR of 0.70 means 70% of your words are unique and not repeated. Higher TTR indicates greater vocabulary diversity. Professional writing typically scores 0.40-0.60, while creative fiction scores 0.50-0.70. A very low TTR suggests excessive repetition that may bore readers, while a very high TTR may indicate text that is too dense or vocabulary that is unnecessarily obscure.

How is formality measured in text?

Formality is measured by analyzing multiple linguistic signals: average word length (longer words indicate higher formality), use of contractions (informal marker), first-person pronouns (less formal), passive voice frequency (more formal), Latin-derived vocabulary such as nominalizations (more formal), and average sentence length (longer sentences are more formal). These signals are combined into a composite score on a 0-100 scale ranging from very casual to academic.

What is the difference between tone and sentiment?

Tone describes the writer's attitude or communicative approach based on word choice, sentence structure, and rhetoric patterns. It classifies the writing as confident, tentative, aggressive, or neutral. Sentiment measures emotional polarity, indicating whether the text expresses positive, negative, or neutral feelings toward its subject. A text can have a confident tone with negative sentiment (a strongly-worded criticism) or a tentative tone with positive sentiment (a cautious, hopeful recommendation).

Is my text data private when using this analyzer?

Yes. This writing style analyzer runs entirely in your browser using client-side JavaScript. Your text is never sent to any server, never stored, and never shared. There are no cookies, no analytics trackers, and no accounts. You can verify this by monitoring the Network tab in your browser's developer tools while using the tool.

Related Tools

ML

Michael Lip

Solo developer building free, privacy-first writing and developer tools. All Enhio tools run client-side with zero tracking. Part of the Zovo Tools network.