--- title: text-analyzer emoji: 📝 colorFrom: green colorTo: green sdk: static pinned: false license: apache-2.0 --- # Text Readability & Tone Analyzer Paste any text — blog post, essay, email, or report — and get instant analysis powered by the Hugging Face Inference API. ## Features - **Summary** — Condensed version of long texts via `facebook/bart-large-cnn` (skipped for texts under 100 words) - **Tone Classification** — Zero-shot classification with `facebook/bart-large-mnli` across six tones: formal, casual, persuasive, informative, emotional, humorous - **Readability Statistics** — Word count, sentence count, average words per sentence, syllable count, and Flesch Reading Ease score with a visual meter - **Writing Suggestions** — Passive voice detection, long sentence flagging (>30 words), filler word counts ## How to use 1. Enter your free HF token from [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens) (Read access is sufficient) 2. Paste your text 3. Click **Analyze Text** or press `Ctrl+Enter` ## Models used | Task | Model | |------|-------| | Summarization | `facebook/bart-large-cnn` | | Tone classification | `facebook/bart-large-mnli` | | Readability & suggestions | Pure JavaScript (no API) |