Add function to replace proper nouns with Wikipedia classes