Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -0,0 +1,11 @@
|
|||
// I before E except after C. Nigel Galloway: September 30th., 2024
|
||||
type plausibility=(plausible,implausible);
|
||||
var fN:string->string->integer:=n->g->System.Text.RegularExpressions.Regex.Matches(n,g).count;
|
||||
var fG:Func<string,integer>->(array of integer)->array of integer:=n->g->g.Zip(|n('ie'),n('ei'),n('cie'),n('cei')|,(n,g)->n+g).ToArray;
|
||||
begin
|
||||
var n:=System.IO.File.ReadLines('unixdict.txt').Aggregate(|0,0,0,0|,(n,g)->fG(fN(g))(n));
|
||||
println($'I before E except after C is {if n[0]-n[2]>2*n[2] then plausible else implausible}');
|
||||
println($'E before I except after C is {if n[1]-n[3]>2*n[3] then plausible else implausible}');
|
||||
println($'I before E when after C is {if n[2]>2*n[3] then plausible else implausible}');
|
||||
println($'E before I when after C is {if n[3]>2*n[2] then plausible else implausible}');
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue