diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-16 22:51:22 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-16 22:51:22 -0400 |
commit | b849e98358555e8fc18ce226d8b310bf45d72dce (patch) | |
tree | 6be6c568791c985f2f9f3344a6a0f1f50a86af28 /lib/noun_query.cpp | |
parent | e7299f7bf66df7e62bf36ef42ab7810086d088c5 (diff) | |
download | verbly-b849e98358555e8fc18ce226d8b310bf45d72dce.tar.gz verbly-b849e98358555e8fc18ce226d8b310bf45d72dce.tar.bz2 verbly-b849e98358555e8fc18ce226d8b310bf45d72dce.zip |
Added rhymes_with predicate based on rhymes rather than words
Diffstat (limited to 'lib/noun_query.cpp')
-rw-r--r-- | lib/noun_query.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/noun_query.cpp b/lib/noun_query.cpp index 8f37bf6..f4c832b 100644 --- a/lib/noun_query.cpp +++ b/lib/noun_query.cpp | |||
@@ -46,6 +46,13 @@ namespace verbly { | |||
46 | return *this; | 46 | return *this; |
47 | } | 47 | } |
48 | 48 | ||
49 | noun_query& noun_query::rhymes_with(rhyme _r) | ||
50 | { | ||
51 | _rhymes.push_back(_r); | ||
52 | |||
53 | return *this; | ||
54 | } | ||
55 | |||
49 | noun_query& noun_query::has_pronunciation() | 56 | noun_query& noun_query::has_pronunciation() |
50 | { | 57 | { |
51 | this->_has_prn = true; | 58 | this->_has_prn = true; |