This introduces replaceRunOnWordCandidates, similar to findReplacementCandidates (i.e. the result being data with distances, not just strings). It also modifies findReplacementCandidates so that at the end the distance is kept and not increased (CandidateData constructor uses frequency data, i.e. frequency data was used twice).
This introduces
replaceRunOnWordCandidates
, similar tofindReplacementCandidates
(i.e. the result being data with distances, not just strings). It also modifiesfindReplacementCandidates
so that at the end the distance is kept and not increased (CandidateData constructor uses frequency data, i.e. frequency data was used twice).