1 using System.Collections.Generic;
12 private const string DefaultDictionary =
"data/dictionary/1000_most_common_english_words.txt";
13 private const string DefaultWhitelist =
"data/whitelist.txt";
20 WhitelistPath = DefaultWhitelist;
21 DictionaryPath = Path.Combine(Directory.GetCurrentDirectory(), DefaultDictionary);
22 Dictionary =
new List<string>(File.ReadAllLines(DictionaryPath));
23 AverageWordLengthWeight = 0.2f;
24 SentenceLengthWeight = 0.2f;
25 VocabularyComplexityWeight = 0.2f;
26 NominalFormsWeight = 0.2f;
27 SentenceStructureComplexityWeight = 0.2f;
31 public string WhitelistPath {
get;
set; }
34 public string DictionaryPath {
get;
set; }
35 public List<string> Dictionary {
get;
set; }
38 public float AverageWordLengthWeight {
get;
set; }
39 public float SentenceLengthWeight {
get;
set; }
40 public float VocabularyComplexityWeight {
get;
set; }
41 public float NominalFormsWeight {
get;
set; }
42 public float SentenceStructureComplexityWeight {
get;
set; }
Settings()
Constructor of the settings.