diff options
Diffstat (limited to 'nancy.cpp')
| -rw-r--r-- | nancy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
| diff --git a/nancy.cpp b/nancy.cpp index 523db57..f5aa9f6 100644 --- a/nancy.cpp +++ b/nancy.cpp | |||
| @@ -98,7 +98,7 @@ int main(int argc, char** argv) | |||
| 98 | { | 98 | { |
| 99 | verbly::word adj = database.words(verbly::notion::partOfSpeech == verbly::part_of_speech::adjective).first(); | 99 | verbly::word adj = database.words(verbly::notion::partOfSpeech == verbly::part_of_speech::adjective).first(); |
| 100 | 100 | ||
| 101 | form.replace(i, 5, capitalize(adj.getBaseForm())); | 101 | form.replace(i, 5, capitalize(adj.getBaseForm().getText())); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | // Nouns | 104 | // Nouns |
| @@ -110,7 +110,7 @@ int main(int argc, char** argv) | |||
| 110 | && !(verbly::word::usageDomains %= (verbly::notion::wnid == 106718862)) // Blacklist ethnic slurs | 110 | && !(verbly::word::usageDomains %= (verbly::notion::wnid == 106718862)) // Blacklist ethnic slurs |
| 111 | ).first(); | 111 | ).first(); |
| 112 | 112 | ||
| 113 | form.replace(i, 6, capitalize(n.getBaseForm())); | 113 | form.replace(i, 6, capitalize(n.getBaseForm().getText())); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | if (form.size() > 140) | 116 | if (form.size() > 140) |
