Automated Gloss Mapping for Inferring Grammatical Properties