Skip to content

Instantly share code, notes, and snippets.

@kwik101
Created August 9, 2011 16:37
Show Gist options
  • Select an option

  • Save kwik101/1134517 to your computer and use it in GitHub Desktop.

Select an option

Save kwik101/1134517 to your computer and use it in GitHub Desktop.
test for gist.github.com/1134511
soundex = require './soundex'
console.log 'rules:'
console.log soundex.rules
words = [
'Барселона'
'barcelana'
'hello'
'хеллоу'
'ворд'
'word'
'world'
'ленни'
'лена'
'лень'
'lenny'
'пещера'
'пестчера'
'петчера'
'печера'
'привет'
'молоко'
'малако'
'ошибка'
'ошипка'
'криветка'
'криведко'
'nodejs'
'ноджс'
'queue'
'queues'
' йцукеёнгшщзхъфывапролджэячсмитьбю'
' qwertyuiopasdfghjklzxcvbnm'
]
results = []
for word in words
console.log "#{word}: #{soundex.soundex(word)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment