pub fn score_character(
    position: usize,
    is_start: bool,
    acronym_score: f32,
    consecutive_score: f32,
) -> f32 {
    let position_score = score_position(position as f32);

    let mut start_bonus = 0.0;
    let mut score = consecutive_score;
    if is_start {
        start_bonus = 10.0;
        if acronym_score > consecutive_score {
            score = acronym_score;
        }
    }

    position_score + (WM * (score + start_bonus))
}
/// Calculate the score of a character based on its position and calculated
/// acronym and consecutive scores around it.
Calculate the score of a character based on its position and calculated
acronym and consecutive scores around it.
Calculate the score of a character based on its position and calculated acronym and consecutive scores around it .
pub fn score_character(
    position: usize,
    is_start: bool,
    acronym_score: f32,
    consecutive_score: f32,
) -> f32 {
    let position_score = score_position(position as f32);
    let mut start_bonus = 0.0;
    let mut score = consecutive_score;
    if is_start {
        start_bonus = 10.0;
        if acronym_score > consecutive_score {
            score = acronym_score;
        }
    }
    position_score + (WM * (score + start_bonus))
}
pub fn score_character ( position : usize , is_start : bool , acronym_score : f32 , consecutive_score : f32 , ) -> f32 { let position_score = score_position ( position as f32 ) ; let mut start_bonus = 0.0 ; let mut score = consecutive_score ; if is_start { start_bonus = 10.0 ; if acronym_score > consecutive_score { score = acronym_score ; } } position_score + ( WM * ( score + start_bonus ) ) }
Calculate the score of a character based on its position and calculated
acronym and consecutive scores around it.
Calculate the score of a character based on its position and calculated acronym and consecutive scores around it .
position
usize
is_start
bool
acronym_score
f32
consecutive_score
f32