use crate::fact::MemoFact;

pub fn frequency_score(fact: &MemoFact) -> f64 {
    // Logarithmic boost: log(1 + access_count) normalised to [0,1] with saturation at 20
    let count = fact.access_count as f64;
    (1.0 + count).ln() / (1.0 + 20.0_f64).ln()
}
