From 70d6fc90ef683dd3e1f83a6432a662304f6ff5dc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 26 Mar 2016 15:37:44 -0400 Subject: Added some more data --- chemist.cpp | 4 ++++ data.txt | 79 ++++++++++++++++++++++++++++++++++--------------------------- 2 files changed, 48 insertions(+), 35 deletions(-) diff --git a/chemist.cpp b/chemist.cpp index a111931..05cfac0 100644 --- a/chemist.cpp +++ b/chemist.cpp @@ -98,6 +98,10 @@ int main(int argc, char** argv) auto person = database.nouns().with_singular_form("person").limit(1).run().front(); auto ptypes = database.nouns().full_hyponym_of({person}).is_class().random().limit(1).run().front(); result = database.nouns().instance_of({ptypes}).random().limit(1).run().front().singular_form(); + } else if (canontkn == "BODYPART") + { + auto bp = database.nouns().with_singular_form("body part").limit(1).run().front(); + result = database.nouns().full_hyponym_of({bp}).random().limit(1).run().front().singular_form(); } else { auto group = groups[canontkn]; result = group[rand() % group.size()]; diff --git a/data.txt b/data.txt index 6a7c6ea..5bb93e4 100644 --- a/data.txt +++ b/data.txt @@ -8,16 +8,19 @@ PRIMARY {NAME} is {CLASS:indefinite} approved for treatment of {syndrome}, {syndrome}, and {syndrome}. {NAME} is {CLASS:indefinite} used for {syndrome} and {syndrome}. {NAME} is {CLASS:indefinite} used with {existent} to treat {syndrome}. +{NAME} is {CLASS:indefinite} used in cases of {EXISTENT} overdose. +{NAME} is {CLASS:indefinite} used recreationally as {CLASS:indefinite}. SECONDARY -Developed in {year} in response to the Great {Noun} Epidemic in {Region}. +Developed in {year} due to the Great {Noun} Epidemic in {Region}. Frequently prescribed off-label for {syndrome}. Sometimes used for {syndrome} because of its {verbing} effect. Illegal to own in the US because of its {verbing} effect. -Developed in {year} to replace {existent}. -Overtook {existent} as the primary treatment, having fewer side effects. +Developed in {year} to replace {EXISTENT}. +Overtook {EXISTENT} as the primary treatment, having fewer side effects. Synthesized by {FamousName} in {year} in a {verbing} accident. -Used mainly in {year}, before {existent} became popular. +Used mainly in {year}, before {EXISTENT} became popular. +Only legal in {Region} because of its {verbing} effect. SYNDROME Irritable {Noun} Syndrome @@ -25,8 +28,13 @@ Irritable {Noun} Syndrome Severe {Noun} Major {Adjective} Disorder {Adjective} {Noun} Disorder -Obsessive {Adjective} Disorder +Obsessive {Noun} Disorder Clinical {Noun} +{Adjective} Personality Disorder +Respiratory {Adjective} Disease +{Bodypart} Cancer +Restless {Bodypart} +{Bodypart} Failure CLASS analgesic @@ -81,64 +89,65 @@ antibiotic antiviral drug stimulant depressant +aphrodisiac EXISTENT -Fluoxetine +fluoxetine Prozac -Sertraline +sertraline Zoloft -Escitalopram +escitalopram Lexapro -Venlafaxine +venlafaxine Effexor -Aripiprazole +aripiprazole Abilify -Alprazolam +alprazolam Xanax -Diazepam +diazepam Valium -Lamotrigine +lamotrigine Lamictal -Gabapentin +gabapentin Neurontin -Acetaminophen +acetaminophen Tylenol -Ibuprofin +ibuprofin Advil -Lurasidone +lurasidone Latuda -Lithium -Activated charcoal -Estradiol +lithium +activated charcoal +estradiol AndroGel -Ziprasidone +ziprasidone Geodon -Risperidone +risperidone Risperdal -Quetiapine +quetiapine Seroquel Cymbalta -Duloxetine -Bupropion +duloxetine +bupropion Welbutrin -Buspirone +buspirone Buspar -Oxycontin +oxycontin Oxycodone Concerta -Methylphenidate +methylphenidate Ritalin Vyvanse -Lisdexamfetamine +lisdexamfetamine Adderall -Epinephrine -Adrenaline -Testosterone gel +epinephrine +adrenaline +testosterone gel Cialis Viagra -Heroin -Morphine -Crystal meth +heroin +morphine +crystal meth NAME {PRENAME}{NAMEMID}{NAMEIFX} -- cgit 1.4.1