Make ResourceExtractor template class
Support capital case in spellchecker