Skip to main content

content_classification

Function content_classification 

Source
pub fn content_classification(
    language: Option<&str>,
    valid_utf8: bool,
) -> ContentClassification
Expand description

Classify one already-admitted file from registry truth and UTF-8 validity.

Admission and ignore policy remain owned by the scanner. Registry truth wins for known rows; only otherwise unknown content falls back to UTF-8 evidence.