The function applies a simple mapping from words to integers, where each word is associated with a unique integer value.

