From 8b1333d0e6e2b9a5014bdbff2987d899f5413fee Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 21:35:35 -0400 Subject: Added word derivational relationships (kind of eh at the moment) and moved verbly into its own directory --- verbly/word.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 verbly/word.cpp (limited to 'verbly/word.cpp') diff --git a/verbly/word.cpp b/verbly/word.cpp deleted file mode 100644 index c50e7d3..0000000 --- a/verbly/word.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "verbly.h" - -namespace verbly { - - word::word(const data& _data, int _id) : _data(_data), _id(_id) - { - - } - - std::list word::rhyme_phonemes() const - { - std::list result; - - for (auto pronunciation : pronunciations) - { - auto phemstrt = std::find_if(std::begin(pronunciation), std::end(pronunciation), [] (std::string phoneme) { - return phoneme.find("1") != std::string::npos; - }); - - std::stringstream rhymer; - for (auto it = phemstrt; it != std::end(pronunciation); it++) - { - rhymer << " " << *it; - } - - result.push_back(rhymer.str()); - } - - return result; - } - -}; -- cgit 1.4.1