Pass just the length

In length_score only the length is needed why pass the whole string ?