The function f(x) takes a word as input and returns a value between 0 and 1 indicating the association