summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-03-20 18:18:36 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-03-20 18:18:36 -0400
commitb7a453a8246a76293b296dadf305217a70b0ac1a (patch)
treea83b0f94022e8c6bcff13d22645fa5f65ad62a48
parent02c187fd3141203024b6f359ec714c0b804583c0 (diff)
downloadverbly-b7a453a8246a76293b296dadf305217a70b0ac1a.tar.gz
verbly-b7a453a8246a76293b296dadf305217a70b0ac1a.tar.bz2
verbly-b7a453a8246a76293b296dadf305217a70b0ac1a.zip
Fixed bug in generator regarding proper noun detection
-rw-r--r--generator/generator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/generator/generator.cpp b/generator/generator.cpp index de369a4..7ec94df 100644 --- a/generator/generator.cpp +++ b/generator/generator.cpp
@@ -577,8 +577,7 @@ int main(int argc, char** argv)
577 { 577 {
578 case 1: // Noun 578 case 1: // Noun
579 { 579 {
580 auto sing = nouns[word].singular; 580 sqlite3_bind_int(ppstmt, 2, (std::any_of(std::begin(word), std::end(word), [] (char ch) {
581 sqlite3_bind_int(ppstmt, 2, (std::any_of(std::begin(sing), std::end(sing), [] (char ch) {
582 return isupper(ch); 581 return isupper(ch);
583 }) ? 1 : 0)); 582 }) ? 1 : 0));
584 583