import io1from nltk.corpus import stopwords2from nltk.tokenize import word_tokenize345stop_words = set(stopwords.words('english'))6file1 = open("text.txt")789line = file1.read()10words = line.split()11for r in words:12if not r in stop_words:13appendFile = open('filteredtext.txt','a')14appendFile.write(" "+r)15appendFile.close()161718#INPUT19# Jane Austen’s Pride and Prejudice is an 18th-century novel of manners set in rural20# England and portraying the relationships between the four daughters of the Bennet21# family and their neighbors. While accurately and vividly depicting the manners and22# social norms of that time, the novel also provides sharp observations on the23# themes of love, marriage, class, money, education, and social prestige. In24# this paper, the four main themes of Pride and Prejudice are analyzed. Marriage25# is the main topic around which the plot revolves. The author illustrates the26# conflict between marrying for money, which was the typical idea at the time,27# and marrying for love. In either case, the economic and social differences were28# obstacles which made it hard for young women from poor families to break out of29# their social circle. Each person’s position in society was determined by their30# class, and the relations between families also centered around differences in wealth31# and status. The gender differences also played an important role, as women were32# considered inferior to men and were practically unable to choose partners. Austen33# both criticizes and examines the social life of 18th-century England, advocating for34# marrying for love as one of the essential female rights.353637#OUTPUT38# Jane Austen’s Pride Prejudice 18th-century novel manners set rural England39# portraying relationships four daughters Bennet family neighbors. While accurately40# vividly depicting manners social norms time, novel also provides41# sharp observations themes love, marriage, class, money, education, social prestige.42# In paper, four main themes Pride Prejudice analyzed. Marriage main topic around43# plot revolves. The author illustrates conflict marrying money, typical idea44# time, marrying love. In either case, economic social differences obstacles made45# hard young women poor families break social circle. Each person’s position46# society determined class, relations families also centered around differences47# wealth status. The gender differences also played important role, women48# considered inferior men practically unable choose partners. Austen criticizes examines49# social life 18th-century England, advocating marrying love one essential female rights.505152