Translating words to algebraic expressions