Shreeti Shrestha commited on
Commit
dd1981b
·
1 Parent(s): 67fde39

Adding textbook version

Browse files
pages/llm_tutor.py CHANGED
@@ -16,7 +16,7 @@ AI_AVATAR_ICON = '✨'
16
 
17
  # Create a data/ folder if it doesn't already exist
18
  try:
19
- os.mkdir('data/')
20
  except:
21
  # data/ folder already exists
22
  pass
 
16
 
17
  # Create a data/ folder if it doesn't already exist
18
  try:
19
+ os.mkdir('data/groupb')
20
  except:
21
  # data/ folder already exists
22
  pass
pages/textbook.py CHANGED
@@ -1,35 +1,96 @@
 
 
 
1
  import streamlit as st
2
- from os import path
3
- import pymupdf
 
4
 
5
  st.set_page_config(page_title="LSAT Control - Textbook Tutor", page_icon="📘")
6
- st.title("📘 LSAT Logical Reasoning - Group A")
7
-
8
- # Upload the textbook PDF
9
- pdf_file = path.abspath("utils/textbook.pdf")
10
- if pdf_file:
11
- doc = pymupdf.open(pdf_file, filetype="pdf")
12
-
13
- # Topic selector
14
- topic_pages = {
15
- "The Basics of Logical Reasoning": [i for i in range(1,36)],
16
- "Must Be True": [i for i in range(66,92)],
17
- "Main Point Questions": [i for i in range(93,135)],
18
- "Conditional Reasoning": [i for i in range(136,191)],
19
- "Weaken Questions": [i for i in range(192,218)],
20
- "Cause and Effect Reasoning": [i for i in range(219,238)],
21
- "Strengthen, Justify, and Assumption": [i for i in range(239,309)],
22
- "Find the Flaw": [i for i in range(349,379)],
23
- "Evaluate the Argument": [i for i in range(429,439)],
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- topic = st.selectbox("Choose a topic:", list(topic_pages.keys()))
27
- pages = topic_pages[topic]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- # Extract and display text
30
- text = ""
31
- for p in pages:
32
- text += doc[p].get_text()
33
 
34
- st.subheader("📖 Concept Explanation")
35
- st.write(text)
 
1
+ import time
2
+ import os
3
+ import joblib
4
  import streamlit as st
5
+ from utils.conceptexcerpts import concept_excerpts
6
+ from utils.exampleexcerpts import example_excerpts
7
+ from google import genai
8
 
9
  st.set_page_config(page_title="LSAT Control - Textbook Tutor", page_icon="📘")
10
+ st.title("📘 LSAT Logical Reasoning - Textbook Learning (Control)")
11
+
12
+ new_chat_id = f'{time.time()}'
13
+ MODEL_ROLE = 'ai'
14
+ AI_AVATAR_ICON = '✨'
15
+
16
+ # Create a data/ folder if it doesn't already exist
17
+ try:
18
+ os.mkdir('data/groupa')
19
+ except:
20
+ # data/ folder already exists
21
+ pass
22
+
23
+ # Load past chats (if available)
24
+ try:
25
+ past_chats: dict = joblib.load('data/past_chats_list')
26
+ except:
27
+ past_chats = {}
28
+
29
+ # Sidebar allows a list of past chats
30
+ with st.sidebar:
31
+ st.write('# Past Chats')
32
+ if st.session_state.get('chat_id') is None:
33
+ st.session_state.chat_id = st.selectbox(
34
+ label='Pick a past chat',
35
+ options=[new_chat_id] + list(past_chats.keys()),
36
+ format_func=lambda x: past_chats.get(x, 'New Chat'),
37
+ placeholder='_',
38
+ )
39
+ else:
40
+ # This will happen the first time AI response comes in
41
+ st.session_state.chat_id = st.selectbox(
42
+ label='Pick a past chat',
43
+ options=[new_chat_id, st.session_state.chat_id] + list(past_chats.keys()),
44
+ index=1,
45
+ format_func=lambda x: past_chats.get(x, 'New Chat' if x != st.session_state.chat_id else st.session_state.chat_title),
46
+ placeholder='_',
47
+ )
48
+
49
+ # Save new chats after a message has been sent to AI
50
+ st.session_state.chat_title = f'ChatSession-{st.session_state.chat_id}'
51
 
52
+ # Chat history (allows to ask multiple questions)
53
+ try:
54
+ st.session_state.messages = joblib.load(
55
+ f'data/{st.session_state.chat_id}-st_messages'
56
+ )
57
+ st.session_state.gemini_history = joblib.load(
58
+ f'data/{st.session_state.chat_id}-gemini_messages'
59
+ )
60
+ except:
61
+ st.session_state.messages = []
62
+ st.session_state.gemini_history = []
63
+
64
+ choices = ["A", "B", "C", "D", "E"]
65
+
66
+ # Dropdown to select topic
67
+ topic = st.selectbox("Choose a topic to review:", list(concept_excerpts.keys()))
68
+
69
+ # Display Concept
70
+ st.subheader("Concept Overview")
71
+ st.markdown(concept_excerpts[topic])
72
+
73
+ # Display Question
74
+ st.subheader("Practice Question")
75
+ q = example_excerpts[topic]
76
+ st.write(q[0])
77
+ for i, choice in enumerate(choices):
78
+ st.write(f"{i}). {choice}")
79
+
80
+ # Show answer
81
+ if st.checkbox("Show Answer"):
82
+ st.success(f"Correct Answer: {q[1]}")
83
+
84
+ # Save to file
85
+ joblib.dump(
86
+ st.session_state.messages,
87
+ f'data/{st.session_state.chat_id}-st_messages',
88
+ )
89
+ joblib.dump(
90
+ st.session_state.gemini_history,
91
+ f'data/{st.session_state.chat_id}-gemini_messages',
92
+ )
93
+
94
+
95
 
 
 
 
 
96
 
 
 
utils/conceptexcerpts.py ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Assumption = """
2
+ Question Type: Assumption
3
+ Assumption questions ask you to identify the missing link in the logic of the stimulus
4
+ argument.
5
+ Some example question stems are
6
+ 1. Which one of the following, if assumed, allows the argument’s conclusion to be
7
+ properly drawn?
8
+ 2. Which one of the following is an assumption on which the argument depends?
9
+ 3. The final conclusion above follows logically if which one of the following is
10
+ assumed?
11
+ 4. The claim made by the official in the argument above depends on the presupposition
12
+ that
13
+ 5. Which one of the following is an assumption on which the argument relies?
14
+
15
+ Note: "Presupposition” is simply another word that the LSAT uses for assumption
16
+
17
+ Strategies
18
+ The most time-efficient way to answer assumption questions is to recognize the missing
19
+ link in the argument as you read the stimulus. Sometimes, the wording of the argument
20
+ and the answer choices can be confusing. So, you might want to employ the technique
21
+ of negating the answer choices that you want to test.
22
+
23
+ Because an assumption is an unstated piece of evidence, this technique “knocks out”
24
+ each answer choice that you test, one by one. When you test the correct answer, you are
25
+ knocking out a piece of evidence, and the argument should suffer accordingly.
26
+ In tutoring sessions, we often use the analogy of testing to see if a wall within a house
27
+ or an office is important to the structure by knocking the wall down to see if the roof
28
+ falls in. If the roof falls in, we have shown that the wall was important. If there is no
29
+ effect on the structure, the wall was not a load-bearing wall. In other words, the wall
30
+ was irrelevant to the strength of the structure.
31
+
32
+ """
33
+
34
+
35
+ Weaken_Strengthen = """
36
+ Question Type: Weaken/Strengthen
37
+ You will have to attack a significant number of weaken and strengthen questions in
38
+ order to end up with a respectable LSAT score. This question type also sometimes
39
+ appears in the Reading Comprehension section of the exam. Since the LSAT is set up to
40
+ test your understanding of the structure of arguments, the correct answer choices for
41
+ weakening and strengthening questions will more often undermine or support their
42
+ respective conclusions structurally rather than by directly attacking stated evidence, or
43
+ by providing new evidence. You can undermine conclusions by finding a key assumption
44
+ in the argument and then finding the answer choice that will make that assumption
45
+ more likely to be true or less likely to be true, as the case may be.
46
+
47
+ Note: Remember that weakening an argument does not mean disproving it completely and strengthening an
48
+ argument does not mean proving it beyond all doubt. To strengthen an argument is to make the conclusion
49
+ more likely to be true, and to weaken an argument is to make the conclusion at least somewhat less
50
+ likely to be true.
51
+
52
+ Some example question stems are
53
+
54
+ Weaken:
55
+ 1. Which one of the following, if true, would most weaken the above argument?
56
+ 2. The prediction that ends the paragraph would be most seriously called into question
57
+ if it were true that
58
+ 3. Which one of the following, if true, most weakens the researcher’s argument?
59
+ 4. Which one of the following, if true, most calls into question the argument that…?
60
+ 5. Which one of the following, if true, most undermines the conclusion?
61
+ 6. Which one of the following, if true, would be the strongest challenge to the
62
+ author’s conclusion?
63
+
64
+ Strengthen:
65
+ 1. Which one of the following, if established, does most to justify the position
66
+ advanced by the passage?
67
+ 2. Which one of the following, if true, provides the best reason in favor of the
68
+ proposal?
69
+ 3. Which one of the following, if true, most strengthens the argument?
70
+ 4. Which of the following principles, if valid, most helps to justify the scientist’s
71
+ reasoning?
72
+ 5. Which one of the following, if true, most helps to support the claim that…?
73
+ 6. Which one of the following, if true, most supports the proposal?
74
+
75
+ Strategies
76
+ To answer either a weaken or strengthen question, you must first identify the key
77
+ assumptions in the argument. This should become second nature to you as you practice
78
+ for test day. Once you become proficient at identifying assumptions, you can more easily
79
+ choose answers that either support or undermine them. In some cases of weaken
80
+ questions, the correct answer actually contradicts a statement made in the stimulus
81
+ argument.
82
+
83
+ """
84
+ Conclusion = """
85
+
86
+ Question Type: Conclusion
87
+ These questions ask you to draw a conclusion from evidence presented within the stimulus.
88
+ In some cases, the conclusion that you are asked to draw is based on only part of
89
+ the stimulus and will not necessarily be the main idea of the stimulus paragraph. Some
90
+ conclusion questions use the terms “infer” and “imply.”
91
+
92
+ Note: Remember that “imply” and “infer” are just two sides of the same coin; the speaker, or author, implies and
93
+ the listener, or reader, infers.
94
+
95
+ Some example question stems are
96
+ 1. If the statements above are true, which one of the following must also be true on
97
+ the basis of them?
98
+ 2. If the environmentalist’s statements are true, they provide the most support for
99
+ which one of the following?
100
+ 3. Which one of the following statements is most strongly supported by the information
101
+ above?
102
+ 4. Amy’s reply is structured to lead to which one of the following conclusions?
103
+ 5. Which one of the following inferences is most strongly supported by the information
104
+ above?
105
+ 6. Which one of the following can be properly inferred from the argument above?
106
+ Strategies
107
+ To correctly answer these questions you must consider the validity of the argument.
108
+ Look for the logical end of the chain of reasoning started in the stimulus argument.
109
+
110
+ """
111
+ Method_of_Argument = """
112
+
113
+ Question Type: Method of Argument
114
+ Method of argument questions ask you to recognize the way that the argument is put
115
+ together. You must choose the answer that properly describes the structure of the stimulus
116
+ argument. Some, but certainly not all, method of argument questions are based on
117
+ dialogues.
118
+ Some examples of question stems are
119
+ 1. The scientist’s argument proceeds by
120
+ 2. Trillian’s response to Douglas proceeds by
121
+ 3. Karen uses which one of the following argumentative techniques in countering
122
+ Rob’s argument?
123
+ 4. The argument criticizing the essay employs which one of the following strategies?
124
+ 5. The relationship of Svetlana’s statement to Katalya’s argument is that Svetlana’s
125
+ statement
126
+
127
+ Strategies
128
+ To answer these questions correctly, you must pay attention to the structure of the argument
129
+ rather than to the content or subject matter. Describe the argument in your own
130
+ words (paraphrase) and try to match up the analogous parts of your paraphrased argument
131
+ to the answer choices.
132
+
133
+ Note: The LSAT purposely uses difficult language to disguise relatively simple arguments. Practice sufficiently so
134
+ that you can recognize the argument amidst the tricky language.
135
+
136
+ """
137
+ Principle = """
138
+
139
+ Question Type: Principle
140
+ These questions ask you to identify a rule, or principle, that supports the stimulus argument
141
+ presented. In some cases, you are required to choose an argument that conforms
142
+ to the stimulus principle.
143
+ Some example question stems are
144
+ 1. The reasoning above most closely conforms to which one of the following
145
+ principles?
146
+ 2. Which one of the following conforms most closely to the principle illustrated
147
+ above?
148
+ 3. Which one of the following employee behaviors most clearly violates the company
149
+ policy outlined above?
150
+ 4. Which one of the following illustrates a principle most similar to that illustrated
151
+ by the passage?
152
+
153
+ Strategies
154
+ The first step in answering these questions is to identify the rule or principle in the
155
+ stimulus argument. Then, select the answer choice that relies on the same rule or principle.
156
+ You should generally avoid any answer choices that include the same subject
157
+ matter as that of the stimulus argument; focus on the rule or principle, not on the
158
+ content.
159
+ """
160
+ Point_of_Contention = """
161
+
162
+ Question Type: Point of Contention
163
+ These questions always involve a dialogue between two people who disagree about
164
+ something. You are expected to choose the answer that best describes the crux of the
165
+ disagreement.
166
+
167
+ Some sample question stems are
168
+ 1. Todd’s and Andy’s positions indicate that they disagree about the truth of which
169
+ one of the following?
170
+ 2. A point on which Randy and Salvatore’s views differ is whether
171
+ 3. William and Max disagree over whether
172
+ 4. The dialogue most supports the claim that Heather and Mike disagree about
173
+ whether
174
+
175
+ Strategies
176
+ Your first step is to understand, then succinctly summarize the first party’s argument.
177
+ Next, determine where the first and second parties differ in their statements.
178
+ Paraphrasing will help you get to the root of the argument and quickly locate the
179
+ correct answer.
180
+
181
+ """
182
+ Role_of_Fact = """
183
+
184
+ Question Type: Role of Fact
185
+ Some of the questions ask about the role, or function, of a specific fact that is included
186
+ in the stimulus argument.
187
+
188
+ Some sample question stems are
189
+ 1. The claim that taxes should increase in proportion to a person’s income plays
190
+ which one of the following roles in the argument?
191
+ 2. The claim in the first sentence of the passage plays which one of the following
192
+ roles in the argument?
193
+ 3. Joshua’s statement that “this claim simply cannot be proved” plays which one of
194
+ the following roles in his argument?
195
+ 4. Which one of the following most accurately describes the role played in the
196
+ passage by the claim that fish have gills?
197
+
198
+ Strategies
199
+ To answer these questions correctly, you must determine the reason why the author
200
+ included this particular fact or detail. Most of the incorrect answer choices will either be
201
+ too narrow or too broad, or beyond the scope of the stimulus argument.
202
+ """
203
+ Flaw = """
204
+
205
+ Question Type: Flaw
206
+ These questions ask you to identify an error of reasoning in the stimulus argument.
207
+ Some sample question stems are
208
+ 1. Which one of the following, if true, identifies a flaw in the plan for the program?
209
+ 2. The argument is vulnerable to criticism on the grounds that the argument
210
+ 3. The reasoning above is questionable because it fails to exclude the
211
+ possibility that
212
+ 4. The reasoning in the politician’s argument is flawed because this argument
213
+ 5. Ralph’s reasoning in his response to Jessica is most vulnerable to criticism on the
214
+ grounds that it
215
+ 6. Which one of the following is a questionable argumentative strategy employed
216
+ in the above argument?
217
+
218
+ Strategies
219
+ The question stem tells you that a problem exists with the logic of the argument. You
220
+ just have to choose the answer that describes the flaw. Most flawed arguments include
221
+ an unwarranted assumption; in other words, the argument is weakened by a missing link
222
+ between the stated evidence and the stated conclusion. The author of the argument is
223
+ taking something for granted that is not necessarily true.
224
+ """
225
+ Paradox = """
226
+
227
+ Question Type: Paradox
228
+ A paradox arises when you are presented with two statements that are both true, yet
229
+ they appear to be mutually contradictory. The key words to help you spot paradox question
230
+ stems are “explain” and “reconcile.”
231
+ Some sample questions stems are
232
+ 1. Which one of the following, if true, most helps to explain why the people
233
+ mentioned continued to grow beans?
234
+ 2. Which one of the following, if true, most helps to explain the finding of the
235
+ caffeine study?
236
+ 3. Which one of the following, if true, helps to reconcile the statements above?
237
+ 4. Which one of the following, if true, does the most to reconcile the apparent
238
+ conflict in the system described above?
239
+
240
+ Strategies
241
+ The stimulus argument in paradox questions usually includes a term that either must be
242
+ redefined in order to resolve the paradox, or contains a misinterpretation of a term upon
243
+ which the author relies. You must recognize the contradiction that exists and look for an
244
+ answer choice that more clearly defines a critical term.
245
+ We often refer to the “bumblebee paradox” with our tutoring students. Current research
246
+ suggests that a bumblebee’s wings are aerodynamically unsound; as a result, a bumblebee
247
+ should not be able to fly. However, bumblebees do fly, so clearly the term “aerodynamically
248
+ unsound” is poorly defined.
249
+ """
250
+ Parallel_Structure = """
251
+
252
+ Question Type: Parallel Structure
253
+ These questions ask you to match up two arguments that share structural characteristics.
254
+ There are usually two parallel structure questions in each Logical Reasoning section. They
255
+ are usually in the second half of the section, and they can usually be recognized by their
256
+ length since each answer choice is a complete argument. Sometimes the stimulus argument
257
+ is flawed. In such a case, you must identify the answer choice argument that shares
258
+ the same flaw.
259
+
260
+ Some sample question stems are
261
+ 1. Which one of the following arguments is most similar in its reasoning to the
262
+ argument above?
263
+ 2. The flawed reasoning in which one of the following arguments most closely
264
+ resembles the flawed reasoning in the professor’s argument?
265
+ 3. The reasoning in the argument above most closely parallels that in which one of
266
+ the following?
267
+ 4. The flawed pattern of reasoning in the argument above is most similar to that in
268
+ which one of the following?
269
+ 5. Which one of the following contains questionable reasoning most similar to that
270
+ in the argument above?
271
+ 6. The pattern of reasoning in which of the following is most similar to that in the
272
+ mayor’s argument?
273
+
274
+ Strategies
275
+ One way to approach the parallel structure questions is to reason by analogy. In other
276
+ words, if you match up the analogous parts, the structure becomes clearer. The structure
277
+ of the argument is more important than the content or subject matter of the argument.
278
+ Do not be fooled by answer choices that refer to the same subject matter as that
279
+ presented in the stimulus argument. You are expected to see past the facts presented and
280
+ look at the relationship between the evidence and conclusion in the argument.
281
+ """
282
+
283
+ concept_excerpts = {
284
+ "Assumption": Assumption,
285
+ "Weaken_Strengthen": Weaken_Strengthen,
286
+ "Conclusion" : Conclusion,
287
+ "Method_of_Argument" : Method_of_Argument,
288
+ "Principle" : Principle,
289
+ "Point_of_Contention" : Point_of_Contention,
290
+ "Role_of_Fact" : Role_of_Fact,
291
+ "Flaw" : Flaw,
292
+ "Paradox" : Paradox,
293
+ "Parallel_Structure" : Parallel_Structure
294
+ }
295
+
utils/exampleexcerpts.py ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Assumption_q = f"""
2
+
3
+ Sample Assumption Question \n
4
+ Consider the following example: \n
5
+ 1. The birth rate in Country X is down this year by 12% compared to last year. The
6
+ death rate in Country X has remained stable for several years. Therefore, the
7
+ population of Country X is decreasing measurably.
8
+ Which of the following is assumed by the author of the argument above? \n
9
+ (A) The causes of the declining birthrate in Country X can be discovered
10
+ through physician surveys. \n
11
+ (B) Statisticians are able to predict future changes in the size of the population
12
+ of Country X. \n
13
+ (C) Country Y, which has a nearly identical population to Country X, is experiencing
14
+ the same population shift as Country X. \n
15
+ (D) There was no significant migration into Country X during the time under
16
+ discussion. \n
17
+ (E) The causes of the declining birthrate in Country X are primarily economic
18
+ in nature. \n
19
+
20
+ """
21
+
22
+ Assumption_ans = """
23
+
24
+ The best answer is D. You might be able to answer the question directly by simply recognizing
25
+ the missing piece of evidence and selecting it. However, if you aren’t able to do so,
26
+ you can still determine the correct answer by negating whichever answer choices you view
27
+ as potentially correct. It is not likely that you will have time to carefully negate each choice
28
+ presented. So, you will need to “filter out” choices that you find clearly irrelevant.
29
+ Let’s say that you could easily recognize that answer choice C is irrelevant since it
30
+ discusses Country Y and, therefore, it can’t possibly be the missing link between the
31
+ stated evidence and the stated conclusion, which both involve Country X. Likewise, let’s
32
+ say that you could eliminate answer choice B, which is about predicting the future,
33
+ whereas the stimulus argument is about the recent past. \n
34
+ That leaves answer choices A, D, and E still in contention. Try to negate answer choice
35
+ A. You should come up with something like: “The causes of the declining birthrate in
36
+ Country X cannot be discovered through physician surveys.” Since physicians play no
37
+ part in the stimulus argument, you should recognize that neither the original phrasing
38
+ of answer choice A, nor its negation, has any bearing on the relationship between the
39
+ evidence and the conclusion stated in the argument. Similarly, negating E with “The
40
+ causes of the declining birthrate in Country X are not primarily economic in nature,”
41
+ has no impact on the likelihood that the conclusion is valid. However, if you negate
42
+ answer choice D, you get “There was significant migration into Country X during the
43
+ time under discussion.” This would dramatically call into question the stated conclusion
44
+ that the population of Country X is declining measurably. Therefore, answer choice D
45
+ must be correct.
46
+
47
+ """
48
+
49
+ Weaken_Strengthen_q = """
50
+ Sample Weaken/Strengthen Questions \n
51
+ Consider the following example: \n
52
+ 1. More and more computer software that is capable of correcting not just spelling,
53
+ but also grammar and punctuation is being developed. Therefore, it is increasingly
54
+ unnecessary for working reporters and writers to have a complete knowledge of the
55
+ principles of English grammar and punctuation. Consequently, in training journalists,
56
+ less emphasis should be placed on the principles of grammar so that students
57
+ and professors can concentrate on other important subjects.
58
+ Which one of the following, if true, most seriously weakens the argument given
59
+ for the recommendation above? \n
60
+ (A) The effective use of software that corrects grammar and punctuation
61
+ requires an understanding of grammatical principles. \n
62
+ (B) Much of the software that corrects grammar and punctuation is already
63
+ in use. \n
64
+ (C) Development of more complex ethical guidelines for reporters and writers
65
+ has meant that professors and students in journalism schools must allow
66
+ time for teaching such issues. \n
67
+ (D) Most of the software that is capable of correcting grammar and punctuation
68
+ can be run on the types of computers available to most media outlets. \n
69
+ (E) The journalism curriculum already requires that journalism students be
70
+ familiar with, and able to use, a variety of software packages. \n
71
+ """
72
+
73
+ Weaken_Strengthen_ans = """
74
+ The best answer is A. If journalists must be able to understand the principles of
75
+ grammar in order to effectively use the software described, the conclusion of the argument—
76
+ that less emphasis should be placed on such principles in journalism school—is
77
+ less likely to be true. Answer choices B, D, and E are irrelevant to the argument. Answer
78
+ choice C actually strengthens the argument by making the conclusion just slightly more
79
+ likely to be true. \n
80
+ """
81
+
82
+ Conclusion_q = """
83
+ Sample Conclusion Question \n
84
+ Consider the following example: \n
85
+ 1. Physician: The continued use of this drug to treat patients with a certain disease
86
+ cannot be adequately supported by the proposition that any drug that treats the
87
+ disease is more effective than no treatment at all. What must also be taken into
88
+ account is that this drug is very expensive and has notable side effects.
89
+ Which one of the following most accurately expresses the main point of the physician’s
90
+ argument?
91
+ (A) The drug is more effective than no treatment at all. \n
92
+ (B) The drug is more effective than other forms of treatment for the disease. \n
93
+ (C) The drug is more expensive than other forms of treatment for the disease. \n
94
+ (D) The drug should not be used to treat the disease unless it is either effective
95
+ or inexpensive. \n
96
+ (E) The drug’s possible effectiveness in treating the disease is not sufficient
97
+ justification for using it. \n
98
+ """
99
+
100
+ Conclusion_ans = """
101
+ The best answer is E. According to the physician, the fact that the drug might be
102
+ somewhat effective is not enough reason to continue to use it. The physician suggests
103
+ that other factors beyond mere effectiveness, such as cost and side effects, be considered
104
+ when deciding whether to use the drug. Answer choice A is incorrect because, although
105
+ it might be inferred from evidence presented in the stimulus, the question stem calls for
106
+ the main point of the argument. Answer choices B and C are incorrect because no
107
+ comparison is made between the drug and any other form of treatment for the disease. \n
108
+ Answer choice D is incorrect because the physician also contends that the side effects of
109
+ the drug should be considered when deciding whether to use the drug.
110
+ """
111
+
112
+ Method_of_Argument_q = """
113
+ Sample Method of Argument Question \n
114
+ Consider the following example: \n
115
+ 1. It is widely accepted that eating sugar can cause weight gain. Indeed, many people
116
+ who are susceptible to weight gain report that, in their own experience, eating
117
+ large amounts of sugar is invariably followed by a measurable weight gain within a
118
+ few days. However, it is likely that common wisdom has confused cause and effect.
119
+ Recent studies suggest that hormonal changes associated with stress can cause
120
+ weight gain, and there is ample evidence that people who are fond of sugar tend to
121
+ eat more of it when they are under stress.
122
+ The argument employs which one of the following argumentative strategies? \n
123
+ (A) It cites evidence that questions the accuracy of the evidence advanced in
124
+ support of the position that is being called into question. \n
125
+ (B) It gives additional evidence that suggests an alternative interpretation of the
126
+ evidence offered in support of the position being challenged. \n
127
+ (C) It relies upon the superiority of science versus common opinion as a means
128
+ of dismissing the relevance of evidence based upon common experience. \n
129
+ (D) It shows that the position being challenged is not consistent with cited,
130
+ proven factual evidence. \n
131
+ (E) It calls into question the intelligence of those who subscribe to a certain
132
+ popularly held belief. \n
133
+ """
134
+
135
+ Method_of_Argument_ans = """
136
+ The best answer is B. The additional evidence provided is regarding hormonal
137
+ changes causing weight gain; the alternative interpretation of the correlation between
138
+ sugar consumption and weight gain is the possibility that both the weight gain and sugar
139
+ consumption are, in fact, caused by stress. \n
140
+ """
141
+
142
+ Principle_q = """
143
+ Sample Principle Question \n
144
+ Consider the following example: \n
145
+ 1. The best way to create a successful party is to visualize the guests discussing it with
146
+ friends the next day. The hostess should first decide what aspects of the party will
147
+ lead to favorable comments from guests during those conversations and then come
148
+ up with refreshments and activities that will actually cause such post-party talk to
149
+ occur.
150
+ Which one of the following illustrates a principle most similar to that illustrated by
151
+ the passage? \n
152
+ (A) When planning a vacation, some travelers decide first where they want to
153
+ go, and then plan their route. But, for most people, financial issues must
154
+ also be taken into account. \n
155
+ (B) When landscaping the grounds of a new home, you should start with the
156
+ topsoil and then choose your shrubbery and other foliage. \n
157
+ (C) Good moviemakers do not extemporaneously film their movies in one or
158
+ two days with no script; a movie cannot be separated from the story upon
159
+ which it is based. \n
160
+ (D) In negotiating an employment contract, the best method is to make as many
161
+ outlandish demands as possible and then agree to forgo the most outrageous
162
+ of them. \n
163
+ (E) To make a great golf shot, you should picture the ball landing where you
164
+ want it to land, and then you will be able to line up your body and your club
165
+ accordingly. \n
166
+ """
167
+ Principle_ans = """
168
+ The best answer is E. The underlying principle in the stimulus argument is that it is
169
+ best to work backward from a desired result in order to achieve that result. In the stimulus,
170
+ the desired result is a successful party. In the correct answer, the desired result is a
171
+ great golf shot. Answer choices B, C, and D are incorrect because they work forward
172
+ rather than backward. \n
173
+ """
174
+
175
+ Point_of_Contention_q = """
176
+ Sample Point of Contention Question \n
177
+ Consider the following example: \n
178
+ 1. Jason: The Internet is making more information available to more people than
179
+ ever before in history. So, people can simply learn all they need to know without
180
+ seeking the advice of experts. \n
181
+ Mark: In the past, the need for experts actually increased as the volume of knowledge
182
+ increased. Therefore, the Internet will surely increase our dependence on
183
+ experts. \n
184
+ The dialogue most strongly supports the claim that Jason and Mark disagree with
185
+ each other about whether \n
186
+ (A) the Internet will contribute significantly to the increase in the spread of
187
+ information throughout society \n
188
+ (B) the Internet will increase the likelihood that people will seek the advice of
189
+ experts when searching for knowledge \n
190
+ (C) the Internet makes more information available to more people \n
191
+ (D) experts will increase their reliance on the Internet in the future \n
192
+ (E) explaining knowledge to specialists can only be accomplished by Internet
193
+ experts \n
194
+ """
195
+ Point_of_Contention_ans = """
196
+ The best answer is B. Jason thinks that experts will become irrelevant because of
197
+ direct public access to information. Mark thinks that the opposite will occur.
198
+ """
199
+
200
+ Role_of_Fact_q = """
201
+ Sample Role of Fact Question \n
202
+ Consider the following example: \n
203
+ 1. Some environmentalists have argued that there are two independently sufficient
204
+ justifications for recycling waste materials: one based on economics and the other
205
+ based on the aversion to the continued consumption of pristine global resources.
206
+ But suppose that recycling were not economically efficient. Then it would be less
207
+ clear that an aversion to consuming pristine global resources is enough of a reason
208
+ to recycle.
209
+ Which one of the following most accurately describes the role played in the argument
210
+ by the supposition that recycling is not economically efficient? \n
211
+ (A) It is used to disprove the environmentalist position that we should recycle. \n
212
+ (B) It is used to show that the two reasons given by environmentalists are each
213
+ individually sufficient. \n
214
+ (C) It is used to disprove the claim that recycling is beneficial. \n
215
+ (D) It is used to weaken the claim that consumption of pristine resources is
216
+ sufficient reason to recycle. \n
217
+ (E) It is used to show that there is no sufficient reason for recycling. \n
218
+ """
219
+
220
+ Role_of_Fact_ans = """
221
+ The best answer is D. The author of the argument asks the reader to go along with
222
+ the supposition that recycling is not economically efficient in order to show that a mere
223
+ aversion to consuming pristine resources might not be a sufficient, independent justification
224
+ for recycling after all. Answer choices A, C, and E are incorrect because the argument
225
+ does not actually show that there is no support for recycling. Answer choice B is
226
+ incorrect because the argument is meant to question the reasons given for recycling, not
227
+ to shore up the reasons given by environmentalists. \n
228
+ """
229
+
230
+ Flaw_q = """
231
+ Sample Flaw Question \n
232
+ Consider the following example: \n
233
+ 1. Giant Motors is attempting to dominate the automobile market by promoting its
234
+ products with an expensive television advertising campaign. But, the results of recent
235
+ surveys reveal that, in the opinion of 85 percent of all consumers, Giant Motors
236
+ already dominates the market. Since any product with more than half of all sales in
237
+ any given market is already dominant, Giant Motors dominates the market now and
238
+ must only preserve its market share in order to continue to dominate its market.
239
+ The argument commits which one of the following errors in reasoning? \n
240
+ (A) Failing to eliminate the possibility that what seems to be the outcome of a
241
+ specific market condition might actually be the cause of the condition \n
242
+ (B) Confusing a condition necessary for certain outcome to obtain for a condition
243
+ that, alone, is sufficient to assure that result \n
244
+ (C) Treating the failure to establish the falsity of a specific claim as tantamount
245
+ to showing that such a claim is certainly accurate \n
246
+ (D) Accepting evidence that a claim is believed to be true as evidence that the
247
+ claim, itself, is actually true \n
248
+ (E) Describing the results of a survey that was done in the past as acceptably
249
+ predicting future conditions \n
250
+ """
251
+ Flaw_ans = """
252
+ The best answer is D. The survey results only show the opinions of consumers. The
253
+ stimulus argument relies upon those beliefs as fact in concluding that Giant Motors
254
+ dominates the automobile market. There is no reason to accept the opinion of
255
+ consumers as an accurate measure of Giant Motors’s actual share of the automobile
256
+ market. Each of the other answer choices describes an error in reasoning that is irrelevant
257
+ to the stimulus argument. \n
258
+ """
259
+ Paradox_q = """
260
+ Sample Paradox Question \n
261
+ Consider the following example: \n
262
+ 1. Researchers concur with one another on the issue of the harm that can result when
263
+ children are exposed to microscopic asbestos fibers. The resulting disease, asbestosis,
264
+ is almost always debilitating and even sometimes fatal. Many older school buildings
265
+ contain asbestos insulation around hot water pipes and heating ducts because, until
266
+ recently, the dangers of asbestos were unknown. Yet, these same researchers also
267
+ agree that laws requiring the removal of asbestos from schools could actually lead
268
+ to an increased likelihood of exposure to asbestos fibers to the students who attend
269
+ those schools.
270
+ Which one of the following, if true, most helps to resolve the apparent discrepancy
271
+ in the researchers’ positions? \n
272
+ (A) New insulation materials used instead of asbestos are as potentially harmful
273
+ to children as asbestos is. \n
274
+ (B) The money that would be spent on the removal of asbestos from schools
275
+ could be spent in other ways that would be more likely to increase the
276
+ overall health of school children. \n
277
+ (C) Other sources of asbestos, such as automobile and household uses, are
278
+ responsible for more cases of asbestosis than school-based sources are. \n
279
+ (D) Removing the asbestos from older schools disperses a large quantity of
280
+ asbestos fibers into the air, where they are more easily inhaled than when
281
+ they are left in place around the pipes and ducts. \n
282
+ (E) Lead-based paint poses more of a health hazard to children than asbestos
283
+ does. \n
284
+ """
285
+
286
+ Paradox_ans = """
287
+ The best answer is D. Answer choice D provides an explanation for the suggestion not
288
+ to remove the asbestos. Essentially, this answer boils down to pointing out that the act of
289
+ removal itself is more dangerous than simply leaving the hazard in place. Answer choices
290
+ A, C, and E are all incorrect because they focus on other potential sources of harm rather
291
+ than the apparent conflict between the two positions that the researchers hold simultaneously:
292
+ 1) that asbestos can cause serious harm, and 2) that it should not be removed from
293
+ schools. Answer choice B is incorrect because it focuses on financial issues rather than the
294
+ seemingly logical inconsistency inherent in the researchers’ positions. \n
295
+ """
296
+
297
+ Parallel_Structure_q = """
298
+ Sample Parallel Structure Question \n
299
+ Consider the following example: \n
300
+ 1. Murcheson’s drawing of the Lincoln Monument contains several inaccuracies.
301
+ Therefore, your attempt to reproduce the drawing of the monument will not be a
302
+ very accurate reproduction of the drawing.
303
+ Which one of the following is most similar in its flawed reasoning to the flawed
304
+ reasoning in the argument above? \n
305
+ (A) Katrina’s presentation was made up primarily of fabrications and distortions.
306
+ So the video recording made of it cannot be of good quality. \n
307
+ (B) An architect who creates a model of an ugly building must necessarily create
308
+ an ugly model, unless the sculpture is a distorted representation of the
309
+ building. \n
310
+ (C) If a puppy’s coloring resembles its mother’s, then if the mother’s fur is curly,
311
+ the puppy’s fur must also be curly. \n
312
+ (D) Kelly imitated Rory. But, Kelly is different from Rory, so Kelly could not
313
+ have imitated Rory very well. \n
314
+ (E) Quentin’s second movie is similar to his first. Therefore, his second movie
315
+ must be entertaining since his first movie won many awards. \n
316
+ """
317
+
318
+ Parallel_Structure_ans = """
319
+ The best answer is A. The flaw in the stimulus argument is that it concludes that a
320
+ reproduction of a flawed reproduction cannot, itself, be an accurate reproduction.
321
+ Answer choice A makes the same mistake. In this instance, Murcheson’s drawing and
322
+ Katrina’s presentation fill the same role as one another in their respective arguments.
323
+ And, video recording of Katrina’s presentation is analogous to the attempted reproduction
324
+ in the stimulus argument. Some of the other answer choices are also flawed arguments;
325
+ however, they do not share the same structure. \n
326
+ """
327
+
328
+ example_excerpts = {
329
+ "Assumption": [Assumption_q, Assumption_ans],
330
+ "Weaken_Strengthen": [Weaken_Strengthen_q, Weaken_Strengthen_ans],
331
+ "Conclusion" : [Conclusion_q, Conclusion_ans],
332
+ "Method_of_Argument" : [Method_of_Argument_q, Method_of_Argument_ans],
333
+ "Principle" : [Principle_q, Principle_ans],
334
+ "Point_of_Contention" : [Point_of_Contention_q, Point_of_Contention_ans],
335
+ "Role_of_Fact" : [Role_of_Fact_q, Role_of_Fact_ans],
336
+ "Flaw" : [Flaw_q, Flaw_ans],
337
+ "Paradox" : [Paradox_q, Paradox_ans],
338
+ "Parallel_Structure" : [Parallel_Structure_q, Parallel_Structure_ans]
339
+ }