File size: 1,267 Bytes
ca3db9e
 
 
 
f68b421
ca3db9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
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) |