寻找一种方法来检查一个单词是否可以发音
Possible Duplicate:
Measure the pronounceability of a word?
There are a lot of pronounceable random password generators.
I am looking for the reverse.
I like to know if a given word is pronounceable.
Purpose:
I am looking for a new domain name, you probably have gone though this as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我会针对字典使用函数 levenstein 。
用于检查过度使用的元音或重复的辅音的附加正则表达式模式也会有很大帮助。
PS:这不是 levenstein 的真正用途,但我确信它可能对此很有用。
只是我的想法。
I would use the function levenstein against a dictionary.
Additional regex patterns to check for overused vowels or repeated consonants after each other would also be of great help.
PS: This is not the real use of levenstein but I'm sure it might be of good use for this.
Just my idea.
有很多方法可以解决这个问题,但我会使用以下方法:
1) 获取像
/usr/share/dict/words
这样的字典2) 编写一个程序它会查看每个字母并计算出其后的任何字母的几率。例如,它可能会发现 E 有 1% 的机会后面跟着 A,或者 X 有 5% 的机会后面跟着单词的结尾。
这应该可以让你生成类似单词的东西,但不是单词本身。
There are a lot of ways to approach this, but here's what I would use:
1) Get a dictionary like
/usr/share/dict/words
2) Write a program that looks at each letter and figures out the odds of any letter following it. For example, it might find that an E has a 1% chance of being followed by an A, or that an X has a 5% chance of being followed by the end of the word.
This should let you generate things that are word-like, but not words themselves.
我认为语言模型概率可以帮助你。 http://en.wikipedia.org/wiki/Language_model
I think language model probability can help you. http://en.wikipedia.org/wiki/Language_model
我进入终端(mac)并输入 say。
比如《
向世界说你好!》
I go to the terminal (mac) and type in say.
Such as
Say Hello World!