typo_checker 0.1.0

Searches for typos of English words and returns matches or similar words.(英単語のタイポを検索し、合致もしくは類似する単語を返却します)
Documentation
  • Coverage
  • 50%
    3 out of 6 items documented2 out of 6 items with examples
  • Size
  • Source code size: 2.4 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 56.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 28s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • sotanengel/typo_checker
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sotanengel

typo_checker

Returns TypoCheckResult type words that match or are similar to the word to be checked チェックする単語に合致、もしくは類似する単語をTypoCheckResult型で返却します

fn main() {
    let a = "typo";
    let typo_chec_result = typo_checker::check_a_word(a.to_string());

    println!("typo_chec_result: {:?}", typo_chec_result);
}

Output: typo_chec_result: TypoCheckResult { match_word: None, similar_word_list: Some([SimilarWord { spelling: "hypo", levenshtein_length: 1 }, SimilarWord { spelling: "type", levenshtein_length: 1 }, SimilarWord { spelling: "Expo", levenshtein_length: 2 }, SimilarWord { spelling: "hype", levenshtein_length: 2 }, SimilarWord { spelling: "taco", levenshtein_length: 2 }]) }