Created
August 9, 2011 16:37
-
-
Save kwik101/1134517 to your computer and use it in GitHub Desktop.
test for gist.github.com/1134511
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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