From @mcollardanuy: - converting the query into a vector, - converting a candidate into a vector, and - deciding whether they are variations of the same word or not