diff options
| -rw-r--r-- | chemist.cpp | 4 | ||||
| -rw-r--r-- | 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) | |||
| 98 | auto person = database.nouns().with_singular_form("person").limit(1).run().front(); | 98 | auto person = database.nouns().with_singular_form("person").limit(1).run().front(); |
| 99 | auto ptypes = database.nouns().full_hyponym_of({person}).is_class().random().limit(1).run().front(); | 99 | auto ptypes = database.nouns().full_hyponym_of({person}).is_class().random().limit(1).run().front(); |
| 100 | result = database.nouns().instance_of({ptypes}).random().limit(1).run().front().singular_form(); | 100 | result = database.nouns().instance_of({ptypes}).random().limit(1).run().front().singular_form(); |
| 101 | } else if (canontkn == "BODYPART") | ||
| 102 | { | ||
| 103 | auto bp = database.nouns().with_singular_form("body part").limit(1).run().front(); | ||
| 104 | result = database.nouns().full_hyponym_of({bp}).random().limit(1).run().front().singular_form(); | ||
| 101 | } else { | 105 | } else { |
| 102 | auto group = groups[canontkn]; | 106 | auto group = groups[canontkn]; |
| 103 | result = group[rand() % group.size()]; | 107 | 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 | |||
| 8 | {NAME} is {CLASS:indefinite} approved for treatment of {syndrome}, {syndrome}, and {syndrome}. | 8 | {NAME} is {CLASS:indefinite} approved for treatment of {syndrome}, {syndrome}, and {syndrome}. |
| 9 | {NAME} is {CLASS:indefinite} used for {syndrome} and {syndrome}. | 9 | {NAME} is {CLASS:indefinite} used for {syndrome} and {syndrome}. |
| 10 | {NAME} is {CLASS:indefinite} used with {existent} to treat {syndrome}. | 10 | {NAME} is {CLASS:indefinite} used with {existent} to treat {syndrome}. |
| 11 | {NAME} is {CLASS:indefinite} used in cases of {EXISTENT} overdose. | ||
| 12 | {NAME} is {CLASS:indefinite} used recreationally as {CLASS:indefinite}. | ||
| 11 | 13 | ||
| 12 | SECONDARY | 14 | SECONDARY |
| 13 | Developed in {year} in response to the Great {Noun} Epidemic in {Region}. | 15 | Developed in {year} due to the Great {Noun} Epidemic in {Region}. |
| 14 | Frequently prescribed off-label for {syndrome}. | 16 | Frequently prescribed off-label for {syndrome}. |
| 15 | Sometimes used for {syndrome} because of its {verbing} effect. | 17 | Sometimes used for {syndrome} because of its {verbing} effect. |
| 16 | Illegal to own in the US because of its {verbing} effect. | 18 | Illegal to own in the US because of its {verbing} effect. |
| 17 | Developed in {year} to replace {existent}. | 19 | Developed in {year} to replace {EXISTENT}. |
| 18 | Overtook {existent} as the primary treatment, having fewer side effects. | 20 | Overtook {EXISTENT} as the primary treatment, having fewer side effects. |
| 19 | Synthesized by {FamousName} in {year} in a {verbing} accident. | 21 | Synthesized by {FamousName} in {year} in a {verbing} accident. |
| 20 | Used mainly in {year}, before {existent} became popular. | 22 | Used mainly in {year}, before {EXISTENT} became popular. |
| 23 | Only legal in {Region} because of its {verbing} effect. | ||
| 21 | 24 | ||
| 22 | SYNDROME | 25 | SYNDROME |
| 23 | Irritable {Noun} Syndrome | 26 | Irritable {Noun} Syndrome |
| @@ -25,8 +28,13 @@ Irritable {Noun} Syndrome | |||
| 25 | Severe {Noun} | 28 | Severe {Noun} |
| 26 | Major {Adjective} Disorder | 29 | Major {Adjective} Disorder |
| 27 | {Adjective} {Noun} Disorder | 30 | {Adjective} {Noun} Disorder |
| 28 | Obsessive {Adjective} Disorder | 31 | Obsessive {Noun} Disorder |
| 29 | Clinical {Noun} | 32 | Clinical {Noun} |
| 33 | {Adjective} Personality Disorder | ||
| 34 | Respiratory {Adjective} Disease | ||
| 35 | {Bodypart} Cancer | ||
| 36 | Restless {Bodypart} | ||
| 37 | {Bodypart} Failure | ||
| 30 | 38 | ||
| 31 | CLASS | 39 | CLASS |
| 32 | analgesic | 40 | analgesic |
| @@ -81,64 +89,65 @@ antibiotic | |||
| 81 | antiviral drug | 89 | antiviral drug |
| 82 | stimulant | 90 | stimulant |
| 83 | depressant | 91 | depressant |
| 92 | aphrodisiac | ||
| 84 | 93 | ||
| 85 | EXISTENT | 94 | EXISTENT |
| 86 | Fluoxetine | 95 | fluoxetine |
| 87 | Prozac | 96 | Prozac |
| 88 | Sertraline | 97 | sertraline |
| 89 | Zoloft | 98 | Zoloft |
| 90 | Escitalopram | 99 | escitalopram |
| 91 | Lexapro | 100 | Lexapro |
| 92 | Venlafaxine | 101 | venlafaxine |
| 93 | Effexor | 102 | Effexor |
| 94 | Aripiprazole | 103 | aripiprazole |
| 95 | Abilify | 104 | Abilify |
| 96 | Alprazolam | 105 | alprazolam |
| 97 | Xanax | 106 | Xanax |
| 98 | Diazepam | 107 | diazepam |
| 99 | Valium | 108 | Valium |
| 100 | Lamotrigine | 109 | lamotrigine |
| 101 | Lamictal | 110 | Lamictal |
| 102 | Gabapentin | 111 | gabapentin |
| 103 | Neurontin | 112 | Neurontin |
| 104 | Acetaminophen | 113 | acetaminophen |
| 105 | Tylenol | 114 | Tylenol |
| 106 | Ibuprofin | 115 | ibuprofin |
| 107 | Advil | 116 | Advil |
| 108 | Lurasidone | 117 | lurasidone |
| 109 | Latuda | 118 | Latuda |
| 110 | Lithium | 119 | lithium |
| 111 | Activated charcoal | 120 | activated charcoal |
| 112 | Estradiol | 121 | estradiol |
| 113 | AndroGel | 122 | AndroGel |
| 114 | Ziprasidone | 123 | ziprasidone |
| 115 | Geodon | 124 | Geodon |
| 116 | Risperidone | 125 | risperidone |
| 117 | Risperdal | 126 | Risperdal |
| 118 | Quetiapine | 127 | quetiapine |
| 119 | Seroquel | 128 | Seroquel |
| 120 | Cymbalta | 129 | Cymbalta |
| 121 | Duloxetine | 130 | duloxetine |
| 122 | Bupropion | 131 | bupropion |
| 123 | Welbutrin | 132 | Welbutrin |
| 124 | Buspirone | 133 | buspirone |
| 125 | Buspar | 134 | Buspar |
| 126 | Oxycontin | 135 | oxycontin |
| 127 | Oxycodone | 136 | Oxycodone |
| 128 | Concerta | 137 | Concerta |
| 129 | Methylphenidate | 138 | methylphenidate |
| 130 | Ritalin | 139 | Ritalin |
| 131 | Vyvanse | 140 | Vyvanse |
| 132 | Lisdexamfetamine | 141 | lisdexamfetamine |
| 133 | Adderall | 142 | Adderall |
| 134 | Epinephrine | 143 | epinephrine |
| 135 | Adrenaline | 144 | adrenaline |
| 136 | Testosterone gel | 145 | testosterone gel |
| 137 | Cialis | 146 | Cialis |
| 138 | Viagra | 147 | Viagra |
| 139 | Heroin | 148 | heroin |
| 140 | Morphine | 149 | morphine |
| 141 | Crystal meth | 150 | crystal meth |
| 142 | 151 | ||
| 143 | NAME | 152 | NAME |
| 144 | {PRENAME}{NAMEMID}{NAMEIFX} | 153 | {PRENAME}{NAMEMID}{NAMEIFX} |
