Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Improve the algorithm to match case when replacing. #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 28, 2016

  1. Improve the algorithm to match case when replacing.

    This computes the Hamming distance between the original and its lower
    case, upper case, and title case equivalents.  Whichever is the
    closest match to the original, we do the same to the replacement.  The
    lower case path also has a special check for whether the initial
    letter is capitalized, so that sentence starts are correctly handled.
    piquan committed May 28, 2016
    Configuration menu
    Copy the full SHA
    621f7f3 View commit details
    Browse the repository at this point in the history