phone number to words - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: phone number to words (/showthread.php?tid=2839) Pages:
1
2
|
phone number to words - Jack - 06-30-2024 has anyone made a program to convert a phone number to words? RE: phone number to words - SMcNeill - 06-30-2024 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" .... RE: phone number to words - Jack - 06-30-2024 hello Steve 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 3obviously 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-10000-english/tree/master?tab=License-1-ov-file but I think that bplus probably knows about a free word list RE: phone number to words - bplus - 06-30-2024 @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) RE: phone number to words - bplus - 06-30-2024 update: file ready in previous post RE: phone number to words - SMcNeill - 06-30-2024 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.... RE: phone number to words - Jack - 06-30-2024 bplus and Steve, thank you RE: phone number to words - xerxes - 06-30-2024 (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.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? RE: phone number to words - SMcNeill - 06-30-2024 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. RE: phone number to words - Pete - 07-02-2024 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 |