Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
phone number to words
#1
has anyone made a program to convert a phone number to words?
Reply
#2
I've used the sound files below for speaking phone numbers before.  If you want written ones, then isn't that just a simple case of converting one digit at a time to a string?

SELECT CASE n
   CASE 0: n$ = "zero"
   CASE 1: n$ = "one"
   CASE 2: n$ = "two"
....


Attached Files
.7z   Numbers.7z (Size: 913.4 KB / Downloads: 17)
Reply
#3
hello Steve Smile
I think that you may have misunderstood my question, I meant to convert a phone number to words by substituting the numerals to letters in such a way as to form words, the words would be separated by hyphens.
Quote:  1            2          3
  1          ABC        DEF
 
  4            5          6
  GHI          JKL        MNO
 
  7            8          9
PQRS          TUV        WXYZ
obviously one would need some word list to pick words from I just don't have the faintest idea how one would achieve this, here are 10000 words https://github.com/first20hours/google-1...-1-ov-file
but I think that bplus probably knows about a free word list
Reply
#4
@Jack sounds like a cool little Sunday morning challenge, give my new keyboard a try ;-))

I think my approach would be:
1 to convert all the words on my list to numbers
2 sort the numbers ( with the words attached ie UD Type)
3 look up any number I was curious about and see the list of words I have for it.

Here is list I might have gotten from Steve:

Here is much shorter list of 7 letter words, lets not fool with area codes? there are 24029 words.

Here is the phone list file! Alas, my number has a 0 in it so not listed same with all numbers with 1 in it. (took me an hour with too many blunders)


Attached Files
.txt   7 Letter Phone Words.txt (Size: 539.71 KB / Downloads: 16)
b = b + ...
Reply
#5
update: file ready in previous post Smile
b = b + ...
Reply
#6
Making a word look-up list isn't very hard.   As bplus said, just take any of the basic SCRABBLE word maker programs and alter them slightly for matches for the various numbers.    

The thing I foresee being an issue is getting those "almost word" matches.  For example:

1-900-SXY-TIME
1-800-LUV-QB64
1-800-IBSteve

Most phone numbers aren't 100% word matches.  They're often missing letters, or "close enough" to the actual word, that most folks can still instantly recognize them.   THOSE would the fun ones to try to find and match!

If only someone had a "close enough" Spell Checker of some sort, that they might could check a word list against, to try and get those type matches....    Big Grin Big Grin
Reply
#7
bplus and Steve,  thank you Smile
Reply
#8
(06-30-2024, 12:31 PM)SMcNeill Wrote: Making a word look-up list isn't very hard.   As bplus said, just take any of the basic SCRABBLE word maker programs and alter them slightly for matches for the various numbers.    

The thing I foresee being an issue is getting those "almost word" matches.  For example:

1-900-SXY-TIME
1-800-LUV-QB64
1-800-IBSteve

Most phone numbers are 100% word matches.  They're often missing letters, or "close enough" to the actual word, that most folks can still instantly recognize them.   THOSE would the fun ones to try to find and match!

If only someone had a "close enough" Spell Checker of some sort, that they might could check a word list against, to try and get those type matches....    Big Grin Big Grin
Might be worth looking at Sondex Coding

https://en.wikipedia.org/wiki/Soundex  (algorithm is described quite well)

maybe could be used to get some of these 'near'matches?
Reply
#9
I've got a SoundEx spellcheck too.  I'll see if I can dig it up sometime.  Never really found it very useful, tobe honest, though.
Reply
#10
You can call and ask Clippy at: 1-800-277-4653

Sounds like a fun project. Run loops to find all possible letter combinations and then keep only the results that match up to an existing word database.

Pete Big Grin
Reply




Users browsing this thread: 2 Guest(s)