Modules to generate query expansion terms