summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/demauro.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-25 13:19:51 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-25 13:19:51 +0000
commit30a0ea90cf2520b5c3dc8d68095d9d3380d88013 (patch)
treebc8a03e54922ca7c8a85d582e104e07fba2ef9f6 /data/rbot/plugins/demauro.rb
parentfacc2af8233f691d022742f8ba5b96625c4b55cb (diff)
demauro plugin: add some introductory comment
Diffstat (limited to 'data/rbot/plugins/demauro.rb')
-rw-r--r--data/rbot/plugins/demauro.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/data/rbot/plugins/demauro.rb b/data/rbot/plugins/demauro.rb
index 85f1f417..709fdc48 100644
--- a/data/rbot/plugins/demauro.rb
+++ b/data/rbot/plugins/demauro.rb
@@ -1,3 +1,15 @@
+# vim: set sw=2 et:
+# demauro plugin: provides a link to the definition of a word
+# from the Italian dictionary De Mauro/Paravia available online
+# can also be used by other plugins to check if a given word exists
+# or not (is_italian? method)
+#
+# This should be extended as a general dictionary lookup plugin, for multiple languages
+#
+# Author: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
+#
+# TODO: cache results and reuse them if get_cached returns a cache copy
+
require 'uri'
DEMAURO_LEMMA = /<anchor>(.*?)(?: - (.*?))<go href="lemma.php\?ID=(\d+)"\/><\/anchor>/