about summary refs log tree commit diff stats
path: root/ebooks.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Bot now posts to Mastodon instead of TwitterStar Rauchenberger2022-11-151-42/+37
|
* Converted to C++ style randomizationKelly Rauchenberger2019-02-281-8/+8
| | | | The logic in rawr::randomSentence with the cuts might be slightly different now but who even knows what's going on there.
* Switched from streaming API to timeline pollingKelly Rauchenberger2018-08-061-55/+115
| | | | This means the bot is also now single-threaded.
* Increased canonical maxK to 5Kelly Rauchenberger2018-02-061-1/+1
|
* Updated libtwitter++ to fix non-reply tweets being ignoredKelly Rauchenberger2016-12-011-4/+4
|
* Fixed bug wherein rawr-ebooks could only respond to itselfKelly Rauchenberger2016-08-201-1/+1
|
* Updated libtwitter++ (API changes)Kelly Rauchenberger2016-08-201-32/+16
|
* Updated libtwitter++ (error handling with bad responses)Kelly Rauchenberger2016-06-011-2/+10
|
* Merge branch 'master' of http://github.com/hatkirby/rawr-ebooksKelly Rauchenberger2016-05-291-0/+1
|\
| * Added #include <algorithm>Kelly Rauchenberger2016-05-261-0/+1
| |
* | Newlines, colons, and semicolons are now valid terminatorsKelly Rauchenberger2016-05-291-1/+1
|/
* Fixed ebooks and gen ignoring the form distributionKelly Rauchenberger2016-05-261-4/+4
|
* ebooks now prefills replies correctlyKelly Rauchenberger2016-05-221-2/+2
| | | | It also now does not reply to itself.
* Pulled the ebooks functionality out into a libraryKelly Rauchenberger2016-05-201-3/+35
|
* Now ignoring retweets as they aren't really mentionsKelly Rauchenberger2016-05-201-17/+20
|
* Fixed error with replying to tweetsKelly Rauchenberger2016-05-201-0/+1
|
* Added ability for rawr ebooks to respond to tweetsKelly Rauchenberger2016-05-201-19/+53
| | | | Now using libtwitter++ instead of twitcurl!
* Full sentences mode!Kelly Rauchenberger2016-03-081-1/+1
|
* rawr-ebooks now tells you how long it will wait before the next tweetKelly Rauchenberger2016-02-281-1/+30
|
* Attemped to fix line-endings for WindowsKelly Rauchenberger2016-02-171-0/+5
|
* Added emoji freevarKelly Rauchenberger2016-02-011-7/+1
| | | | Strings of emojis are tokenized separately from anything else, and added to an emoticon freevar, which is mixed in with regular emoticons like :P. This breaks old-style freevars like $name$ and $noun$ so some legacy support for compatibility is left in but eventually $name$ should be made into an actual new freevar. Emoji data is from gemoji (https://github.com/github/gemoji).
* Rewrote how tokens are handledKelly Rauchenberger2016-01-291-13/+2
| | | | | | A 'word' is now an object that contains a distribution of forms that word can take. For now, most word just contain one form, the canonical one. The only special use is currently hashtags. Malapropisms have been disabled because of compatibility issues and because an upcoming feature is planned to replace it.
* rawr-ebooks no longer generates Twitter access tokens and requires one in ↵Kelly Rauchenberger2016-01-271-118/+13
| | | | the config file
* Rewrote quite a bit of kgramstatsKelly Rauchenberger2016-01-041-161/+155
| | | | | | The algorithm still treats most tokens literally, but now groups together tokens that terminate a clause somehow (so, contain .?!,), without distinguishing between the different terminating characters. For each word that can terminate a sentence, the algorithm creates a histogram of the terminating characters and number of occurrences of those characters for that word (number of occurrences is to allow things like um???? and um,,,,, to still be folded down into um.). Then, when the terminating version of that token is invoked, a random terminating string is added to that token based on the histogram for that word (again, to allow things like the desu-ly use of multiple commas to end clauses). The algorithm now also has a slightly advanced kgram structure; a special "sentence wildcard" kgram value is set aside from normal strings of tokens that can match any terminating token. This kgram value is never printed (it is only ever present in the query kgrams and cannot actually be present in the histograms (it is of a different datatype)) and is used at the beginning of sentence generation to make sure that the first couple of words generated actually form the beginning of a sentence instead of picking up somewhere in the middle of a sentence. It is also used to reset sentence generation in the rare occasion that the end of the corpus is reached.
* guess what! the algorithmKelly Rauchenberger2015-12-301-10/+16
| | | | | | | this time it's a literal algorithm again not canonizing away punctuation newlines are actually considered new sentences now we look for the end of a sentence and then start after that
* Fixed std namespace references in ebooks.cppKelly Rauchenberger2015-11-231-10/+10
|
* Added malapropismsKelly Rauchenberger2015-11-221-2/+0
|
* I may have made things better. I may have made things worse.Kelly Rauchenberger2015-11-221-3/+9
|
* Fixed typo with respect to reading delay time from config.ymlFeffernoose2013-10-081-1/+1
|
* Added user-configurble delay between tweets in rawr-ebooksFeffernoose2013-10-081-2/+4
| | | | Also changed default delay from 15 minutes to 1 hour
* Implemented freevarsFeffernoose2013-10-071-1/+7
| | | | Arbitrary variable tokens can now be defined (though at this point only in the code itself) as a pair of a variable name and a filename pointing to a plain text file containing a newline-delimited list of elements. When a token of the form $name$ (where name is the name of a variable) is encountered, the output will include a random element from the appropriate list. The variables $name$ and $noun$ are hard-coded at this point, but the program will not crash if names.txt and nouns.txt do not exist and will instead just silently ignore the variables.
* Split rawr-ebooks and rawr-genFeffernoose2013-10-061-0/+169
Also wrote README