Home › Forums › OpenEars › Adding custom words to the LanguageModelGeneratorList.txt › Reply To: Adding custom words to the LanguageModelGeneratorList.txt
Hello,
Can I create a phrase in the LookupList?
Yes, I recommend it for words or phrases you know you’ll be generating dictionaries for, but you can’t have any spaces in the word entry before the tab. You could also add JOHN and HENRY and DOE separately and a request for the phrase “John-Henry Doe” should then find all of your added words. Take care to put your additions into the alphabetically-correct location in the file, since the English-language lookup uses the order to optimize lookups.
Can the phrases contain punctuation like ‘ (apostrophe) and – (dash)?
Yes, these are the two allowed forms of punctuation.
I recall reading on the forum somewhere the the words do not need to be in all caps any more. Is that correct?
Yes, but this regards the generation of the language model or grammar, not the LanguageModelGeneratorLookupList entries, which should just be added in whatever case the rest of the list is in (uppercase, lowercase, or mixed case). The framework will make sure to normalize requests and the entries to the same case during lookups so you don’t have to worry about case.