Hi,
I need a small program writing to be added to my website.
It can be in php, javascript or whatever you like as long as it is simple to add to my website and secure.
I am writing a system for converting Bible chapters into words. It requires numbers to be changed into letters.
0= s
1 = t or d
2 = n or h
3 = m
4 = r
5 = l
6 = g or j
7 = k or c
8 = b or f
9 = p
aeiou quvxyz do not equal any number
I would like a program that will convert numbers into the available words in English.
So for example if I input 12 the program would check a dictionary or extensive word list and return - ton, done, tan etc.
Here is a fuller example:
I type in 191 press enter.
The program would check the first letter of the first word in the dictionary lets say that word is 'adaft'.
Does letter 'a' pass? Yes letter 'a' is not used as a number so that would be allowed.
Next letter
Does letter 'd' pass? Yes because letter 'd' = 1
Next letter
Does letter 'a' pass? Yes letter a is not used as a number so that would be allowed.
Next letter
Does letter 'f' pass? No because letter 'f' = 8
So that word would fail and the program would move onto the next word and so on until finally it finds a word that fits in this case the first word it finds that works might be be "adapt" which equals -1-91
The program would add this word to its success list and then move on finding all the words that worked.
1 letter minimum and 3 letters will always be the maximum so any words that work for three numbers and yet may contain other numbers after that would pass the test
so "abatement" would pass for 813 although in fact it is 81321.
Addition: You will need to provide access to a dictionary or good list of words in whatever format you require. I do not have a dictionary or list of English words.
Addition: My website runs on Unix servers and uses mysql database.
I trust this makes some sense to programmers out there and look forward to your questions and bids.
Steve