I sometimes need to tally lists in which the same word might be capitalised (Word) or all in capital letters (WORD). This post explains how to normalise the words and tally them using sed or AWK.
Source: LXer – Dealing with an all-CAPS/first-CAP jumble