# How to make a soundex method in

**URL:** <https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332>\
**Category:** Rails\
**Created:** [January 22, 2009, 5:46am UTC](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332 "2009-01-22T05:46:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timdunn2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Post date:** [January 22, 2009, 5:46am UTC](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332/1 "2009-01-22T05:46:50Z")

</div>

I am working with a table in my database where I am looking through  
every record to see if it matches with every other record in that same  
table to see if its a soundex match or not

I want to define a method where I can call it as a true or false  
statement like:

onerecord.soundex(otherrecord) = true or false and be able to run the  
code below based on if its true or false

---

<div class="post-metadata">

**Author:** ![timdunn2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Post date:** [January 22, 2009, 9:11am UTC](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332/2 "2009-01-22T09:11:53Z")

</div>

[http://snippets.dzone.com/posts/show/4530](http://snippets.dzone.com/posts/show/4530)

* * *

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![timdunn2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Post date:** [January 22, 2009, 9:12am UTC](https://www.ruby-forum.com/t/how-to-make-a-soundex-method-in/158332/3 "2009-01-22T09:12:28Z")

</div>

## Also… [Soundex - Wikipedia](http://en.wikipedia.org/wiki/Soundex) is helpful.

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!
