summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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>/