Skip to main content

Crate writing_analysis

Crate writing_analysis 

Source
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§

error

Structs§

AnalysisResult
Aggregated result of all analysis functions.
ClicheInstance
A single cliché occurrence.
ClicheResult
Result of cliché detection.
FilterWordInstance
A single filter word occurrence.
FilterWordResult
Result of filter word detection.
PassiveInstance
A single passive voice occurrence.
PassiveVoiceResult
Result of passive voice detection.
ReadabilityScores
Readability scores computed from text statistics.
SentenceVarietyResult
Result of sentence variety analysis.
SentimentResult
Result of sentiment analysis.
TextStatistics
Raw text statistics used by readability formulas.
TokenSentiment
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.