Frith MC

PLoS One. 2011;6(12):e28819. doi:10.1371/journal.pone.0028819

Gentle masking of low-complexity sequences improves homology search.

In the case of DNA, score 1 for same letter and same case, 0 for same letter but different case, and -1 for different letter.