Beispiel #1
0
 public Dictionary<string, int> GetTopWords(CommandLineArgs args, IFileParser parser)
 {
     var wordsDictionary = parser.CreateDictionaryFromFile(args.TextFile);
     var bannedWordsDictionary = parser.CreateDictionaryFromFile(args.BannedWordsFile);
     return GetSortedWords(wordsDictionary, bannedWordsDictionary);
 }