March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
A [http://en.wikipedia.org/wiki/Semordnilap#Semordnilaps semordnilap], is a word (or phrase) that spells a different word (or phrase) backward. "Semordnilap" is a word that itself is a semordnilap.
|
||||
A '''[[wp:semordnilap|semordnilap]]''' is a word (or phrase) that spells a different word (or phrase) backward. "Semordnilap" is a word that itself is a semordnilap.
|
||||
|
||||
Example: <code>''lager'' and ''regal''</code>
|
||||
|
||||
|
|
|
|||
22
Task/Semordnilap/AutoHotkey/semordnilap.ahk
Normal file
22
Task/Semordnilap/AutoHotkey/semordnilap.ahk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
S := [], M := []
|
||||
|
||||
FileRead, dict, unixdict.txt
|
||||
Loop, Parse, dict, `n, `r`n
|
||||
{
|
||||
r := Reverse(A_LoopField)
|
||||
if (S[r])
|
||||
M.Insert(r " / " A_LoopField)
|
||||
else
|
||||
S[A_LoopField] := 1
|
||||
}
|
||||
|
||||
Loop, 5
|
||||
Out .= "`t" M[A_Index] "`n"
|
||||
|
||||
MsgBox, % "5 Examples:`n" Out "`nTotal Pairs:`n`t" M.MaxIndex()
|
||||
|
||||
Reverse(s) {
|
||||
Loop, Parse, s
|
||||
r := A_LoopField . r
|
||||
return r
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue