Improved handling of capitalization issues when building inflections