From 29c6d78edb88a38c2bfde54fc7ecccc691bbef30 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 16 Mar 2016 22:57:15 -0400 Subject: Added verbly submodule --- verbly/lib/word.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 verbly/lib/word.cpp (limited to 'verbly/lib/word.cpp') diff --git a/verbly/lib/word.cpp b/verbly/lib/word.cpp deleted file mode 100644 index c50e7d3..0000000 --- a/verbly/lib/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