11static class ContentValidation
22{
3- static Dictionary < string , string > phrases = new ( )
4- {
5- { "a majority of " , "most" } ,
6- { "a number of" , "some or many" } ,
7- { "at an early date" , "soon" } ,
8- { "at the conclusion of" , "after or following" } ,
9- { "at the present time" , "now" } ,
10- { "at this point in time" , "now" } ,
11- { "based on the fact that" , "because or since" } ,
12- { "despite the fact that" , "although" } ,
13- { "due to the fact that" , "because" } ,
14- { "during the course of" , "during" } ,
15- { "during the time that" , "during or while" } ,
16- { "have the capability to" , "can" } ,
17- { "in connection with" , "about" } ,
18- { "in order to" , "to" } ,
19- { "in regard to " , "regarding or about" } ,
20- { "in the event of" , "if" } ,
21- { "in view of the fact that" , "because" } ,
22- { "it is often the case that" , "often" } ,
23- { "make reference to " , "refer to" } ,
24- { "of the opinion that" , "think that " } ,
25- { "on a daily basis" , "daily" } ,
26- { "on the grounds that" , "because" } ,
27- { "prior to" , "before" } ,
28- { "so as to" , "to" } ,
29- { "subsequent to" , "after" } ,
30- { "take into consideration" , "consider" } ,
31- { "until such time as" , "until" } ,
32- { "a lot" , "many" } ,
33- { "sort of" , "similar or approximately" } ,
34- { "kind of" , "similar or approximately " }
35- } ;
3+ static FrozenDictionary < string , string > phrases = FrozenDictionary . Create < string , string > ( [
4+ new ( "a majority of " , "most" ) ,
5+ new ( "a number of" , "some or many" ) ,
6+ new ( "at an early date" , "soon" ) ,
7+ new ( "at the conclusion of" , "after or following" ) ,
8+ new ( "at the present time" , "now" ) ,
9+ new ( "at this point in time" , "now" ) ,
10+ new ( "based on the fact that" , "because or since" ) ,
11+ new ( "despite the fact that" , "although" ) ,
12+ new ( "due to the fact that" , "because" ) ,
13+ new ( "during the course of" , "during" ) ,
14+ new ( "during the time that" , "during or while" ) ,
15+ new ( "have the capability to" , "can" ) ,
16+ new ( "in connection with" , "about" ) ,
17+ new ( "in order to" , "to" ) ,
18+ new ( "in regard to " , "regarding or about" ) ,
19+ new ( "in the event of" , "if" ) ,
20+ new ( "in view of the fact that" , "because" ) ,
21+ new ( "it is often the case that" , "often" ) ,
22+ new ( "make reference to " , "refer to" ) ,
23+ new ( "of the opinion that" , "think that " ) ,
24+ new ( "on a daily basis" , "daily" ) ,
25+ new ( "on the grounds that" , "because" ) ,
26+ new ( "prior to" , "before" ) ,
27+ new ( "so as to" , "to" ) ,
28+ new ( "subsequent to" , "after" ) ,
29+ new ( "take into consideration" , "consider" ) ,
30+ new ( "until such time as" , "until" ) ,
31+ new ( "a lot" , "many" ) ,
32+ new ( "sort of" , "similar or approximately" ) ,
33+ new ( "kind of" , "similar or approximately " )
34+ ] ) ;
3635
3736 static List < string > invalidStrings ;
3837
@@ -135,4 +134,4 @@ static string Clean(string input)
135134 span [ index ] = ' ' ;
136135 } ) ;
137136 }
138- }
137+ }
0 commit comments