A crate for generating random placeholder text in different languages.

Usage

  1. Download the corpus (text files) from here and place them in the root folder of your rust project.
  2. Include the crate name version in Cargo.toml file.
  3. Use the crate and call the function in your code file. The parameters of the function generate_text_for_language are language: i32 which takes integers from 0 to 7 (see below for mapping) and writetofile: bool which writes to a file if true. use text_manipulation_rs::text_manipulation; ... text_manipulation::generate_text_for_language(language: i32, write_to_file: bool);

Languages supported

0 => english \ 1 => french \ 2 => spanish \ 3 => hindi \ 4 => russian \ 5 => arabic \ 6 => japanese \ 7 => german