Expand description
Lightweight writing analysis and NLP tools for Rust.
Provides rule-based text analysis including readability scoring, passive voice detection, cliché detection, filter word detection, sentiment analysis, and sentence variety analysis.
Re-exports§
pub use error::Result;pub use error::WritingAnalysisError;
Modules§
Structs§
- Analysis
Result - Aggregated result of all analysis functions.
- Cliche
Instance - A single cliché occurrence.
- Cliche
Result - Result of cliché detection.
- Filter
Word Instance - A single filter word occurrence.
- Filter
Word Result - Result of filter word detection.
- Passive
Instance - A single passive voice occurrence.
- Passive
Voice Result - Result of passive voice detection.
- Readability
Scores - Readability scores computed from text statistics.
- Sentence
Variety Result - Result of sentence variety analysis.
- Sentiment
Result - Result of sentiment analysis.
- Text
Statistics - Raw text statistics used by readability formulas.
- Token
Sentiment - Sentiment data for a single token.
Functions§
- analyze_
all - Run all analysis functions on the given text.
- analyze_
readability - Analyze text readability using 5 standard formulas.
- analyze_
sentence_ variety - Analyze sentence variety in text.
- analyze_
sentiment - Analyze sentiment of text using AFINN lexicon.
- detect_
cliches - Detect clichés in text.
- detect_
filter_ words - Detect filter words in text.
- detect_
passive_ voice - Detect passive voice in text.