pub fn split_weak_matches(
index: &LicenseIndex,
matches: &[LicenseMatch],
) -> (Vec<LicenseMatch>, Vec<LicenseMatch>)Expand description
Split matches into good and weak matches.
Weak matches are:
- Matches to rules with “unknown” in their license expression
- Sequence matches with len() <= SMALL_RULE (15) AND coverage <= 25%
Weak matches are set aside before unknown license matching and reinjected later.
§Arguments
matches- Slice of LicenseMatch to split
§Returns
Tuple of (good_matches, weak_matches)
Based on Python: split_weak_matches() (match.py:1740-1765)