From dc210ee6eba3b1d173808bd858113f6abd90bff1 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 --- word.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 word.cpp (limited to 'word.cpp') diff --git a/word.cpp b/word.cpp deleted file mode 100644 index c50e7d3..0000000 --- a/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