#include #include #include #include #include "malaprop.h" #ifndef KGRAMSTATS_H #define KGRAMSTATS_H typedef std::list kgram; class kgramstats { public: kgramstats(std::string corpus, int maxK); std::vector randomSentence(int n); private: typedef struct { int all; int titlecase; int uppercase; int period; int startquote; int endquote; int startparen; int endparen; int comma; std::string* token; } token_data; int maxK; std::map* >* stats; malaprop mstats; }; void printKgram(kgram k); #endif