From c6dff4916fff3d9e8f63257e3b60e773a27c32f8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 10 Feb 2017 11:58:39 -0500 Subject: Updated verbly (bugfix) --- sentence.cpp | 16 ++++++++-------- vendor/verbly | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sentence.cpp b/sentence.cpp index 6cfa0c3..ae485c0 100644 --- a/sentence.cpp +++ b/sentence.cpp @@ -233,7 +233,7 @@ verbly::token sentence::generateStandardNounPhrase( { utter << "your"; } else if (!plural) { - if (sounder.getLemma().getBaseForm().startsWithVowelSound()) + if (sounder.getBaseForm().startsWithVowelSound()) { utter << "an"; } else { @@ -242,12 +242,12 @@ verbly::token sentence::generateStandardNounPhrase( } } - if (descript) + if (descript.isValid()) { utter << descript; } - if (plural && noun.getLemma().hasInflection(verbly::inflection::plural)) + if (plural && noun.hasInflection(verbly::inflection::plural)) { utter << verbly::token(noun, verbly::inflection::plural); } else { @@ -290,13 +290,13 @@ verbly::token sentence::generateClause( if (it.hasSynrestr("participle_phrase")) { - verbCondition &= (verbly::lemma::forms(verbly::inflection::ing_form)); + verbCondition &= (verbly::word::forms(verbly::inflection::ing_form)); } else if (it.hasSynrestr("progressive")) { - verbCondition &= (verbly::lemma::forms(verbly::inflection::s_form)); + verbCondition &= (verbly::word::forms(verbly::inflection::s_form)); } else if (it.hasSynrestr("past_participle")) { - verbCondition &= (verbly::lemma::forms(verbly::inflection::past_participle)); + verbCondition &= (verbly::word::forms(verbly::inflection::past_participle)); } // Because of the tag distribution, it's possible (albeit extremely unlikely) @@ -459,7 +459,7 @@ verbly::token sentence::generateClause( case verbly::part_type::verb: { - std::cout << "V: " << verb.getBaseForm() << std::endl; + std::cout << "V: " << verb.getBaseForm().getText() << std::endl; if (it.hasSynrestr("progressive")) { @@ -609,7 +609,7 @@ void sentence::visit(verbly::token& it) const it = verbly::token( database_.words( (verbly::notion::partOfSpeech == verbly::part_of_speech::verb) - && (verbly::lemma::forms(verbly::inflection::ing_form))).first(), + && (verbly::word::forms(verbly::inflection::ing_form))).first(), verbly::inflection::ing_form); } else { it = generateClause(it); diff --git a/vendor/verbly b/vendor/verbly index a3a033c..f625e90 160000 --- a/vendor/verbly +++ b/vendor/verbly @@ -1 +1 @@ -Subproject commit a3a033c730a2eb4242076f5b34823190aa441cd5 +Subproject commit f625e90a0721483f7f44b94b9bb57cc9d59565e8 -- cgit 1.4.1