Sensitive-rs
English 中文
Sensitive-rs is a Rust library for finding, validating, filtering, and replacing sensitive words. It provides efficient algorithms to handle sensitive words, suitable for various application scenarios.
Features
- Find: Locate all sensitive words in a text.
- Validate: Check if a text contains any sensitive words.
- Filter: Remove sensitive words from a text.
- Replace: Replace sensitive words in a text with specified characters.
Installation
Add the following dependency to your Cargo.toml
:
[]
= "0.1"
Usage Examples
Here are some examples of how to use Sensitive-rs:
Here is an example of how to use the Filter struct
use Filter;
Here is an example of how to use the Trie struct
use Trie;
Documentation
For detailed documentation, please refer to Documentation.
License
Licensed under either of
- Apache License, Version 2.0, LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0
- MIT license LICENSE-MIT or http://opensource.org/licenses/MIT
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 or MIT license, shall be dual licensed as above, without any additional terms or conditions.