
I will explain with an exaustive example of the word "monstrous" and its similars on the book Sense and Sensibility by Jane Austen 1811 (text2): common_contexts shared by "monstrous" and "very": Ĭt. This result tells us that the phrases "the monstrous pictures" and "the true pictures" both appear in Moby Dick. This isn't terribly useful, but NLTK does provide an additional method called common_contexts that shows when the use of a list of words share the same surrounding words. If we take the word 'true' and check it's concordance with ncordance('true') we will get back the first 25 of 87 uses of the word ' true'. Trustworthy impalpable gamesome curious mean pitiable untowardĬhristian subtly passing domineering uncommon true text1.similar('monstrous')ĭetermined maddens contemptible modifies abundant tyrannical puzzled The context for the first returned line is 'most _ size'. Of Whale - Bones for Whales of a monstrous size are oftentimes cast up dead uĪnd then we can get a list of words that appear in similar contexts to 'monstrous'. Ght have been rummaged out of this monstrous cabinet there is no telling. In connexion with the monstrous pictures of whales, I am stronglyĮre to enter upon those still more monstrous stories of them which are to be fo '" CHAPTER 55 Of the Monstrous Pictures of Whales. They might scout at Moby Dick as a monstrous fable, or still worse and more de That has survived the flood most monstrous and most mountainous ! That Himmal Some were thickĭ as you gazed, and wondered what monstrous cannibal and savage could ever hav Ll over with a heathenish array of monstrous clubs and spears. " Touching that monstrous bulk of the whale or ork we have r Ong the former, one was of a most monstrous size. We can check the concordance of 'monstrous' ncordance('monstrous') So, looking at the Moby Dick text ( text1). In this case the the context is just the words directly on either side of token. Using similar(token) returns a list of words that appear in the same context as token. It will show you the sentences where token appears. Using concordance(token) gives you the context surrounding the argument token.
