Linguistic experts used Twitter, one of the world’s most popular social media platforms, to better understand national identity on a mass scale and where stereotypes might originate.