pub fn hashment<T: SegmentationRules>(section: &str, rules: &T) -> Vec<Hashment>
Expand description

Hashmenting a section turns it into a vector of analyzable data. Define and inject your own segmentation rules to modify the segmentation behaviour.

Examples

use filecount::unicode::UnicodeRules;
 
let hashments = filecount::segmentation::hashment("This is a sentence. This is another sentence.", &UnicodeRules);
assert_eq!(2, hashments.len());