first pass implementation of parsing of words