| Crates.io | ragegun |
| lib.rs | ragegun |
| version | 0.2.2 |
| created_at | 2022-11-25 16:11:46.998123+00 |
| updated_at | 2022-11-26 06:52:13.543532+00 |
| description | Performs lexica based analysis on text (i.e. age, gender, PERMA, OCEAN personality traits, ..) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 722862 |
| size | 81,075 |
Lexica based text analysis.
As crates.io is a pain in the ass, this module will download the lexica from GitHub at build time.
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
dbg!(rg.age()); // value like 30.00
}
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
rg.gender() // value like GenderInterpretation::Female
}
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
dbg!(rg.distress()); // value like 1.00
}
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
dbg!(rg.perma());
// PERMAAnalysis {
// positive_emotion: Negative,
// engagement: Negative,
// relationships: Postive,
// meaning: Negative,
// accomplishment: Negative,
// }
}
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
dbg!(rg.emolex_all_languages());
// EmoLexEmotions {
// anger: Neutral,
// anticipation: Neutral,
// disgust: Neutral,
// fear: Neutral,
// joy: Neutral,
// negative: Neutral,
// positive: Neutral,
// sadness: Neutral,
// surprise: Neutral,
// trust: Neutral,
// }
}
mod ragegun;
fn main() {
let rg = ragegun::RageGun::new("foo");
dbg!(rg.emolex_english());
// EmoLexEmotions {
// anger: Neutral,
// anticipation: Neutral,
// disgust: Neutral,
// fear: Neutral,
// joy: Neutral,
// negative: Neutral,
// positive: Neutral,
// sadness: Neutral,
// surprise: Neutral,
// trust: Neutral,
// }
}