Autogram checker: Difference between revisions

m
→‎{{header|Julia}}: len was not a length any more
m (→‎{{header|Phix}}: removed some trailing spaces in the constant)
m (→‎{{header|Julia}}: len was not a length any more)
Line 135:
charcounts = counter(s)
stillneedmention = Dict(p[1] => isletter(p[1]) || p[1] != ' ' && countpunctuation ? p[2] : 0 for p in charcounts)
len = count(isletter, s)
s = " " * replace(s, r"^\.(?:employs|composed|contains)" => "")
for mention in split(s, r"\s*,|:\s*")
Line 144 ⟶ 143:
c = mention[begin+spos:end]
if c == "letters"
if numfromtext != lencount(isletter, txt) # verify a total letter count
verbose && println("The total letter count (should be $len(count(isletter, txt))) is incorrect.")
return false
end
4,106

edits