有没有办法检查a
是否真的应该是句子中的an
?
例如,它确实应该修复以下问题:
一个苹果 => 一个苹果
但以下是正确的:
泌尿科医生
In English, the correct choice of a and an depends on the initial sound of a word, not on the initial letter, of the word that they precede. The letter a should be used before all words beginning with a consonant sound except silent h (an honor) and before words beginning with vowels that represent combined consonant and vowel sounds (university, unit).
最佳答案
使用文本到音标转换器并检查单词是否以元音开头。
英文拼音 http://www.phon.ucl.ac.uk/home/wells/phoneticsymbolsforenglish.htm
apple -> ˈæpl̩
urologist -> jʊəˈrɒlədʒi
编辑: 有一些特殊情况不适用该规则。
- 历史悠久 ->
hɪˈstɒrɪk
- 可怕 ->
həˈrɪfɪk
- 酒店 ->
ˌhəʊˈtel
更多信息请点击这里 http://www.oxforddictionaries.com/words/a-historic-event-or-an-historic-event
关于algorithm - NLP语法: fixing a to an?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23101198/