Skip to main content

StyloScrubber

Trait StyloScrubber 

Source
pub trait StyloScrubber {
    // Required method
    fn scrub(
        &self,
        text: &str,
        profile: &StyloProfile,
    ) -> Result<String, ScrubberError>;
}
Expand description

Linguistic stylometric fingerprint scrubbing port.

Normalises text to destroy authorship attribution fingerprints without changing the semantic content.

Required Methods§

Source

fn scrub( &self, text: &str, profile: &StyloProfile, ) -> Result<String, ScrubberError>

Scrub text to match profile.

§Errors

Returns ScrubberError::InvalidUtf8 or ScrubberError::ProfileNotSatisfied.

Implementors§