Customizing En-US dictionary

2 posts, 0 answers
  1. Chris
    Chris avatar
    8 posts
    Member since:
    Apr 2014

    Posted 11 Sep 2014 Link to this post

    I would like to add a set of industry specific words to the En-US dictionary. What is the best way to do this since the dictionary is embedded in the Telerik.Windows.Documents.Proofing.Dictionaries.En-US dll. I don't want to use a custom dictionary, because users will each have their own custom dictionary.
  2. Boby
    Boby avatar
    586 posts

    Posted 15 Sep 2014 Link to this post

    Hi Chris,
    You can implement your own dictionary containing the words of the original one. The implementation is relatively simple, assuming you have the proper .tdf file added as 'Resource':
    public class RadEn_USExtendedDictionary: RadDictionary
        public RadEn_USExtendedDictionary()
        protected override void EnsureDictionaryLoadedOverride()
            Stream stream = Application.GetResourceStream(new Uri("YourCustomAssemblyName;component/en-USExtended.tdf", UriKind.Relative)).Stream;

    You can find attached the original tdf file for US English, and further modify it, for example using the tool from Creating a Custom RadSpell Dictionary blogpost (this is from the UI for ASP.NET AJAX Forum, but the format is the same).

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top