Analyzing variation in language