private void CheckCategoriesSupported(string category)
{
// if the category is not the default
if (ICategorizedClassifierConstants.DEFAULT_CATEGORY != category)
if (!(_wordsData is ICategorizedWordsDataSource))
throw new ArgumentException("Word Data Source does not support non-default categories.");
}