From e1be2716746e75cf6ed37e86461a7f580a964564 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 10 Mar 2016 21:34:55 -0500 Subject: Started implementing verbly data generator Currently, the generator: - Uses AGID to create entries for verb words and their inflections - Uses WordNet to create entries for adjective, adverb, and noun senses --- furries.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'furries.cpp') diff --git a/furries.cpp b/furries.cpp index 2d0fb23..0cce8bd 100644 --- a/furries.cpp +++ b/furries.cpp @@ -62,7 +62,15 @@ class fill_blanks { case verbly::fillin_type::adjective: { const verbly::adjective& adj = database.adjectives().random(true).limit(1).run().front(); - it = std::make_unique(adj.value); + it = std::make_unique(adj.form); + + break; + } + + case verbly::fillin_type::adverb: + { + const verbly::adverb& adv = database.adverbs().random(true).limit(1).run().front(); + it = std::make_unique(adv.form); break; } @@ -110,6 +118,11 @@ int main(int argc, char** argv) new verbly::string_token("the furries are"), new verbly::fillin_token(verbly::fillin_type::adjective) }); + forms.push_back({ + new verbly::string_token("the furries are"), + new verbly::fillin_token(verbly::fillin_type::adverb), + new verbly::fillin_token(verbly::fillin_type::adjective) + }); verbly::data database {"data.sqlite3"}; fill_blanks yeah {database}; -- cgit 1.4.1