Giter Site home page Giter Site logo

spellaphone's Introduction

SpellaPhone

Travis CI Build Status NPM version

Find out what your number spells!

Use in the browser!

A web page goes here
<script src="https://cdn.jsdelivr.net/gh/allenluce/spellaphone/spellaphone.js"></script>
<script>
  const spellaPhone = require('spellaphone')
  const words = spellaPhone('7976638377')
  console.log(words)
</script>

Use on the command line!

npm install -g spellaphone

Spell a bunch 'o numbers:

npm install -g spellaphone

Use with Node.js! Install:

npm install --save spellaphone

And code:

const spellaPhone = require('spellaphone')
const words = spellaPhone('8004654329')
console.log(words)

What are the words?

The words come from the SCOWL corpus of English and American words. The actual files used are the SCOWL final ones of SCOWL size 70. Single letter "words" (except for "a") have been removed as has any word containing a q or a z, as those aren't on my phone's dial.

Technical details

The 1970's Aho-Corasick algorithm is used to perform a simultaneous search of over 100,000 dictionary words and find matches for your phone number. Alfred Aho and Margaret Corasick's groundbreaking work resulted in a speedup of four or five times over the algorithms of the day and hundreds of times over a simple dictionary search. The Spellaphone algorithm is an adaptation of the Aho-Corsick algorithm that finds words by searching with numbers.

spellaphone's People

Contributors

allenluce avatar aechelon-online avatar dougluce avatar

Stargazers

Arnav Kumar avatar  avatar Karl Pena avatar  avatar Kurt Abersold avatar  avatar  avatar  avatar  avatar jerome ibanes avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

Forkers

cemalince

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.