GithubHelp home page GithubHelp logo

rob-murray / mr-correcter Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 233 KB

MrCorrecter is a friendly guy, he searches Twitter for spelling mistakes and replies to the tweets pointing out to the tweeters that they have misspelled a word.

License: MIT License

Ruby 100.00%

mr-correcter's Introduction

mr-correcter

Build Status Code Climate Coverage Status Haz Commitz Status Gitter

Description

MrCorrecter is a friendly guy, he searches Twitter for spelling mistakes and replies to the tweets pointing out to the tweeters that they have misspelled a word.

Mr_Correcter

Apology

First off, if mr-correcter has offended or annoyed anyone in particular I must apologise for him; he means no harm and is just trying to help the world's spelling.

mr-correcter

mr-correcter is mainly a development exercise, a little play thing; he is just a few lines of code to play around with the Twitter gem. This app searches Twitter using the Twitter API for spelling mistakes, these actually being a common misspelling of a particular word as opposed to any dictionary based testing. The code then creates a reply and again using the Twitter API will reply_to the Tweet with the correct spelling of the word.

It appears that not many people enjoy being corrected and reply back to mr-correcter and he receives a fair amount of abuse back from the mispellers, have a look at some of the replies to him.

Getting started

In order to use this code you will have to checkout this repo and change the Twitter API credentials used.

  1. bundle install.
  2. Create and edit config.yml (see config.example.yml for details) or amend the configuration block in Rakefile. Alter parameters and add Twitter API credentials. Also edit corrections if necessary.
  3. Ready to go.

Usage

Run

To run mr-correcter, after editing any configuration, just run the rake task then sit back and enjoy mayhem.

$ rake run

Spec

Verify mr-correcter spec.

$ rake spec

License

This project is available for use under the MIT software license. See LICENSE

mr-correcter's People

Contributors

gitter-badger avatar rob-murray avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

gitter-badger

mr-correcter's Issues

Move configuration to external file

Would be good idea to move all configuration from the Rakefile into a configuration file passed into script.

Don't forget to ignore the real file but checkin an example file without any credentials!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.