I before E except after C: Difference between revisions

Content added Content deleted
m (added related tasks.)
m (→‎AppleScript :: Functional: Updated patterns)
Line 452: Line 452:
if doesFileExist(fpWordList) then
if doesFileExist(fpWordList) then
set patterns to {"ie", "ei", "cei", "cie"}
set patterns to {"[^c]ie", "[^c]ei", "cei", "cie"}
set counts to ap(map(matchCount, patterns), ¬
set counts to ap(map(matchCount, patterns), ¬
{readFile(fpWordList)})
{readFile(fpWordList)})
Line 690: Line 690:
end zipWith</lang>
end zipWith</lang>
{{Out}}
{{Out}}
<pre>ie > ei -> 490 / 230 = 2.13 :: plausible
<pre>[^c]ie > [^c]ei -> 466 / 217 = 2.15 :: plausible
cei > cie -> 13 / 24 = 0.54 :: unsupported</pre>
cei > cie -> 13 / 24 = 0.54 :: unsupported</pre>