perspicuity_formula

Crates.ioperspicuity_formula
lib.rsperspicuity_formula
version0.1.0
sourcesrc
created_at2024-08-07 12:40:51.454435
updated_at2024-08-07 12:40:51.454435
descriptionCalculate Flesh Reading Ease for a given text and language.
homepage
repositoryhttps://github.com/astuanax/perspicuity_formula
max_upload_size
id1328395
size11,688
Len Dierickx (astuanax)

documentation

README

Perspicuity Formula

The Perspicuity Formula library provides a tool to calculate the readability score for Spanish texts based on the Fórmula de Perspicuidad. This formula helps determine the ease of understanding a given text, making it useful for writers, educators, and content creators who want to ensure their material is accessible to their intended audience.

use perspicuity_formula::PerspicuityFormula;

fn main() {
    let text = "Este es un texto de prueba. Está diseñado para verificar la fórmula de perspicuidad.";
    let pf = PerspicuityFormula::new();
    let score = pf.calculate(text);
    println!("Perspicuity Score: {}", score);
}

Features

  • Calculate the Perspicuity Score for Spanish texts.
  • Automatically count sentences, words, and syllables in the text.
  • Provides a score clamped between 0 and 100 for easy interpretation.
  • Includes comprehensive tests for accuracy and reliability.

Crates.io Docs.rs

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install perspicuity_formula

License

Licensed under:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Commit count: 0

cargo fmt