From 4a02cefc939c8b35353927fa0276b267996902d5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 11 Sep 2016 02:47:25 -0400 Subject: Removed legacy malaprop code --- malaprop.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 malaprop.h (limited to 'malaprop.h') diff --git a/malaprop.h b/malaprop.h deleted file mode 100644 index 91a18eb..0000000 --- a/malaprop.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef MALAPROP_H_8F382336 -#define MALAPROP_H_8F382336 - -#include -#include -#include - -class malaprop -{ -public: - void addWord(std::string word); - void stats(); - std::string alternate(std::string word); - -private: - struct soundex { - char prefix; - int code; - - bool operator<(const soundex& other) const - { - return (prefix < other.prefix) || (code < other.code); - } - }; - - std::map > dict; - - soundex soundify(std::string l); -}; - -#endif /* end of include guard: MALAPROP_H_8F382336 */ -- cgit 1.4.1