stringalign.error_classification.case_error#
- stringalign.error_classification.case_error.count_case_errors(reference: str, predicted: str) int[source]#
Count the number of character errors that are solely due to mistaken casing.
This function counts the number of edits we can avoid if we make casefold the strings before aligning them.
Parameters:#
- reference
The reference text.
- predicted
The predicted text.
Returns:#
- int
The number of case errors.