-->
constant lines = get_text("abbrev_auto.txt",GT_LF_STRIPPED)
for i=1 to length(lines) do
string li = lines[i]
if length(li) then
sequence days = split(li,no_empty:=true)
if length(days)!=7 then ?9/0 end if
integer len = 1
for j=1 to 7 do
for k=j+1 to 7 do
for m=1 to min(length(days[j]),length(days[k])) do
if days[j][m]!=days[k][m] then exit end if
len = max(len,m+1)
end for
end for
end for
printf(1,"%d: %s\n",{len,li})
end if
end for