randomid has asked for the wisdom of the Perl Monks concerning the following question:
Code / idea for this in PERL is greatly appreciated.
,p>There are two files one containing GRE words and another one containing some paragraphs with GRE words in it. We need to find an optimal method to display the output. Example as discussedPara 1
Memorizing vocabulary lists is aberrant abscond advocate not the best way to improve your vocabulary. The best way is to read more and read more challenging material. However, if you only have a couple of months till you take the test, memorization might be your only realistic option. I hope you are seeing this page in your first, rather than your last year of college. If so, consider taking courses in a broad range of disciplines. Doing so will prepare you for the wide range of reading comprehension topics you will get on the GRE, GMAT, MCAT, and LSAT, and improve your vocabulary as well. Include a course in logic for good measure (MSU students can take PHL 130 -- a basic logic course). However, if you're already a senior, you might want to learn all the words on this list. They are not all that uncommon, and you might run into them elsewhere than on the GRE.
Para 2
At least two sections of the GRE, abscond, aberrant, analogies and antonyms, depend largely on the test-taker's knowledge of vocabulary. Many of the following words have appeared in the GRE exams (based upon previous exams which ETS has has released for students to practice with). Others are, in my opinion, good candidates to appear on the GRE. I can't guarantee that you will see all (or any) of these words on the GRE. No one can (legally) do that, as the GRE is secret. However, because of the difficulty of coming up with good antonym and analogy questions, it is likely that some words will be "recycled".
Para 3
The first column contains the vocabulary words, aberrant, arranged in alphabetical order. The second column gives the part(s) of speech (noun, verb, adjective, or adverb) to which the word belongs, and the third gives a bief definition. In some cases, the third column also includes examples of other forms of the listed word. Knowing the part of speech to which a word belongs can often help you analyze questions and answer choices on the verbal sections of the GRE and improve your chances of figuring out the correct answer. This is especially true for analogy questions. For more information on this subject, see the Suffixes page.
Para 4
As for learning the parts of speech, aggrandize rather than memorizing what part of speech each word belongs to, try to become more aware of what the most common parts of speech are and how the are used in sentences. For the purposes of the GRE, nouns, verbs, and adjectives are most useful. Consult a basic grammar handbook for explanations. Then, try to learn the vocabulary by putting the words into sentences. This is the best way to become more aware of how the words are used and will help you analyze GRE Analogies questions.
aberrant appears in Para 1, Para 2 and in Para 3
abscond appears in Para 1, Para 2
advocate appears in Para 1
aggrandize appears in Para 4
Here if we do not have para 2 and para 3 .. We will still have all the 4 words appear..
So We need to optimize it and give the output as
GRE words appear in Para 1, Para 4
|
|---|