fn compare( dialogue: &[Map<String, Value>], stems: &IndexMap<i64, Map<String, Value>>, threshold: f64, ) -> (Vec<Flag>, [usize; 5])