about summary refs log tree commit diff stats
path: root/blessed.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-03-29 11:02:35 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-03-29 11:02:35 -0400
commit9d972ccb0e3a98bf24150ca22f05f21ef598cbb5 (patch)
treef1eeb8741ce388c929cfa29debd34d96e80f2fe2 /blessed.cpp
parentaa9a3d2e3b1cad0ad26efd84a353fc2c8b5ea89c (diff)
downloadblessed-9d972ccb0e3a98bf24150ca22f05f21ef598cbb5.tar.gz
blessed-9d972ccb0e3a98bf24150ca22f05f21ef598cbb5.tar.bz2
blessed-9d972ccb0e3a98bf24150ca22f05f21ef598cbb5.zip
Updated verbly
Diffstat (limited to 'blessed.cpp')
-rw-r--r--blessed.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/blessed.cpp b/blessed.cpp index f3d90c4..faac3f8 100644 --- a/blessed.cpp +++ b/blessed.cpp
@@ -5,6 +5,7 @@
5#include <sstream> 5#include <sstream>
6#include <twitcurl.h> 6#include <twitcurl.h>
7#include <verbly.h> 7#include <verbly.h>
8#include <unistd.h>
8 9
9int main(int argc, char** argv) 10int main(int argc, char** argv)
10{ 11{
@@ -53,8 +54,8 @@ int main(int argc, char** argv)
53 std::string exclamation; 54 std::string exclamation;
54 for (;;) 55 for (;;)
55 { 56 {
56 verbly::verb v = database.verbs().random(true).limit(1).has_pronunciation(true).run().front(); 57 verbly::verb v = database.verbs().random().limit(1).has_pronunciation().run().front();
57 auto rhyms = database.nouns().rhymes_with(v).random(true).limit(1).not_derived_from(v).is_not_proper(true).run(); 58 auto rhyms = database.nouns().rhymes_with(v).random().limit(1).is_not_proper().run();
58 if (!rhyms.empty()) 59 if (!rhyms.empty())
59 { 60 {
60 auto n = rhyms.front(); 61 auto n = rhyms.front();