6 releases

new 0.3.0 May 10, 2024
0.2.2 May 8, 2024
0.2.1 Oct 24, 2023
0.2.0 Jul 7, 2023
0.1.1 Jul 7, 2023

#456 in Text processing

Download history 3/week @ 2024-02-23 1/week @ 2024-03-01 79/week @ 2024-03-08 9/week @ 2024-03-15 4/week @ 2024-03-29 99/week @ 2024-05-03

99 downloads per month

MIT/Apache

9KB
217 lines

Schmfy library

This library is able to schmfy any text.

Usage

Example usage:

use schmfy::schmfy;

fn improve_text(text: &str) {
    let improved_text = schmfy(text);
    println!("Old and boring: {}", text);
    println!("Improved and great: {}", improved_text);
}

The library can be compiled to WebAssembly. You will need wasm-pack (cargo install wasm-pack) and can then build the library with wasm-pack build --target web. This generates a pkg folder which can be used in web environments.

Capabilities

The schmfication capabilities are able to preserve text case and any non-alphabetical characters. If a non-alphabetical character is between two alphabetical strings, both of the alphabetical strings will be interpreted as completely separate words.

For example, the HTML code <span>Entry<br></span> will be converted into <schman>Schmentry<schmer></schman>.


lib.rs:

schmfy - a library to schmfy everything

Dependencies

~0.8–1.4MB
~29K SLoC