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§
Sourcefn scrub(
&self,
text: &str,
profile: &StyloProfile,
) -> Result<String, ScrubberError>
fn scrub( &self, text: &str, profile: &StyloProfile, ) -> Result<String, ScrubberError>
Scrub text to match profile.
§Errors
Returns ScrubberError::InvalidUtf8 or
ScrubberError::ProfileNotSatisfied.