Question: Write a program to classify input text into four categories: regular, some exaggeration, a lot of exaggeration, and hyperbole. The classification is based on the
Write a program to classify input text into four categories: regular, some exaggeration, a lot of exaggeration, and hyperbole. The classification is based on the number of hyperbole words in the text. If the percentage of hyperbole words is < 15% then regular, [15%,25%) then some exaggeration, [25%, 35%) a lot of exaggeration, and >= 35% then hyperbole.
List of hyperbole words to look for:
appropriately
assertively
authoritatively
collaboratively
compellingly
competently
completely
continually
conveniently
credibly
distinctively
dramatically
dynamically
efficiently
energistically
enthusiastically
fungibly
globally
holisticly
interactively
intrinsically
monotonectally
objectively
phosfluorescently
proactively
professionally
progressively
quickly
rapidiously
seamlessly
synergistically
uniquely
For example in the sentence "We are globally recognized" the percentage is 1 / 4 = 0.25, so this sentence is classified as "a lot of exaggeration"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
