Coder Social home page Coder Social logo

reddit-misspelling-trends's Introduction

Quick-and-dirty experiment looking at the rate of common misspellings on Reddit over time.

  • clusters.txt: each line is a comma-separated list of spellings of a particular term, with the first being the correct spelling, and the rest being incorrect spellings. These may also be multi-word phrases. Lines beginning with '#' are ignored.
  • ngrams.py: script to query the Pushshift API for annual counts of each of the forms in clusters.txt
  • data/: directory of json files which are the result of running ngrams.py.
  • viz.ipynb: IPython notebook exploring and visualizing the data

Choice of misspellings

The patterns in clusters.txt were mostly taken from the Wikipedia article Commonly misspelled English words. I was interested in misspellings born out of ignorance, rather than deliberate casual shortenings ("u", "imma") or typos ("thsi").

I included some multi-word phrases indicative of homophone errors (e.g. "take a peak") - since these are less likely to be flagged or autocorrected by software, they provide an interesting sort of control group.

A number of common misspellings needed to be excluded because they were valid words in other languages. For example: ocasion, adress, dilema.

Future work

It would be interesting to see whether the patterns found on Reddit replicated for other social media datasets over the same time period. Because Twitter provides metadata about what platform a tweet was composed on ("Twitter for Android", "Twitter for desktop", etc.), it would be especially useful for investigating the effect of spellcheck/autocorrect of different platforms on misspelling rates.

reddit-misspelling-trends's People

Contributors

colinmorris avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.