Looking for a way to check if a word is allowed

Possible duplicate:
Measure the pronunciation of a word?

There are many expressible random password generators. I am looking for the opposite. I like to know if a given word is spoken.

Looking: I'm looking for a new domain name, probably you did it too.

+4
source share
4 answers

I would use the levenstein function for a dictionary.

Additional regular expression patterns to test for excessive vowels or repeated consonants will also be very helpful.

PS: This is not a real use of levenstein, but I'm sure it can be useful for this.

Just my idea.

+1
source

There are many ways to approach this, but here is what I will use:

1) Get a dictionary like /usr/share/dict/words

2) Write a program that looks at each letter and calculates the odds of any letter following it. For example, it might seem that E has a 1% chance that A will follow, or that X has a 5% chance that it will be followed by the end of a word.

This should allow you to generate words like words, but not the words themselves.

+1
source

I think the likelihood of a language model can help you. http://en.wikipedia.org/wiki/Language_model

+1
source

I go to the terminal (mac) and type.

For instance,

Say hello world!

0
source

All Articles