Builds a linear classifier that can guess the gender of a given name.