A language model transforms words into context-rich representations that capture the meaning of each word relative to the words around it.