diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-20 18:18:36 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-20 18:18:36 -0400 |
commit | b7a453a8246a76293b296dadf305217a70b0ac1a (patch) | |
tree | a83b0f94022e8c6bcff13d22645fa5f65ad62a48 /generator/generator.cpp | |
parent | 02c187fd3141203024b6f359ec714c0b804583c0 (diff) | |
download | verbly-b7a453a8246a76293b296dadf305217a70b0ac1a.tar.gz verbly-b7a453a8246a76293b296dadf305217a70b0ac1a.tar.bz2 verbly-b7a453a8246a76293b296dadf305217a70b0ac1a.zip |
Fixed bug in generator regarding proper noun detection
Diffstat (limited to 'generator/generator.cpp')
-rw-r--r-- | generator/generator.cpp | 3 |
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 | ||