The function takes a word as input and returns a number that corresponds to the word's position in a predefined list of words.

