text-analyzer / README.md
okcan
Fix colorTo value
f68b421 unverified
|
Raw
History Blame Contribute Delete
1.27 kB
---
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) |