rs-wordcloud 0.1.0

☁ Flexible WordCloud implementation for ⚙Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod stop_word_iterators;
mod stop_words;

pub use stop_word_iterators::{StopWordsIteratorPar, StopWordsIterator};
pub use stop_words::StopWords;

const ILLEGAL_CHARS: &[char] = &[
    ',', '.', '?', '!', '-', '_', '\'', ':', '!', '"', '#', '$', '%', '&', '(', ')', '*', '+', '/',
    ';', '', ''
];

/**
    Remove symbols from a given string
*/
pub fn clean(s: &str) -> String {
    s.replace(ILLEGAL_CHARS, "")
}