diff options
Diffstat (limited to 'wordplay.cpp')
-rw-r--r-- | wordplay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wordplay.cpp b/wordplay.cpp index 0d48e3e..8beb225 100644 --- a/wordplay.cpp +++ b/wordplay.cpp | |||
@@ -24,7 +24,7 @@ int main(int argc, char** argv) | |||
24 | for (;;) | 24 | for (;;) |
25 | { | 25 | { |
26 | // Generate the most amazing jokes you've ever heard | 26 | // Generate the most amazing jokes you've ever heard |
27 | auto adjq = database.adjectives().has_pronunciation(true).has_synonyms(true).random(true).limit(1).run(); | 27 | auto adjq = database.adjectives().has_rhyming_noun().has_synonyms().random().limit(1).run(); |
28 | if (adjq.empty()) | 28 | if (adjq.empty()) |
29 | { | 29 | { |
30 | continue; | 30 | continue; |
@@ -32,7 +32,7 @@ int main(int argc, char** argv) | |||
32 | 32 | ||
33 | verbly::adjective rhmadj = adjq.front(); | 33 | verbly::adjective rhmadj = adjq.front(); |
34 | 34 | ||
35 | auto nounq = database.nouns().rhymes_with(rhmadj).not_derived_from(rhmadj).is_hyponym(true).random(true).limit(1).run(); | 35 | auto nounq = database.nouns().rhymes_with(rhmadj).is_hyponym().random().limit(1).run(); |
36 | if (nounq.empty()) | 36 | if (nounq.empty()) |
37 | { | 37 | { |
38 | continue; | 38 | continue; |
@@ -40,7 +40,7 @@ int main(int argc, char** argv) | |||
40 | 40 | ||
41 | verbly::noun rhmnoun = nounq.front(); | 41 | verbly::noun rhmnoun = nounq.front(); |
42 | 42 | ||
43 | auto hypq = database.nouns().hypernym_of(rhmnoun).random(true).limit(1).run(); | 43 | auto hypq = database.nouns().hypernym_of(rhmnoun).random().limit(1).run(); |
44 | if (hypq.empty()) | 44 | if (hypq.empty()) |
45 | { | 45 | { |
46 | continue; | 46 | continue; |
@@ -48,7 +48,7 @@ int main(int argc, char** argv) | |||
48 | 48 | ||
49 | verbly::noun hyp = hypq.front(); | 49 | verbly::noun hyp = hypq.front(); |
50 | 50 | ||
51 | auto synq = database.adjectives().synonym_of(rhmadj).random(true).limit(1).run(); | 51 | auto synq = database.adjectives().synonym_of(rhmadj).random().limit(1).run(); |
52 | if (synq.empty()) | 52 | if (synq.empty()) |
53 | { | 53 | { |
54 | continue; | 54 | continue; |