diff --git a/lib/alchemy-api/base.rb b/lib/alchemy-api/base.rb
index <HASH>..<HASH> 100644
--- a/lib/alchemy-api/base.rb
+++ b/lib/alchemy-api/base.rb
@@ -33,6 +33,14 @@ module AlchemyAPI
       raise MissionOptionsError.new
     end
 
+    def method_prefix
+      case mode
+      when :text then "Text"
+      when :url then "URL"
+      when :html then "HTML"
+      end
+    end
+
     def path
       "#{mode}/#{web_method}"
     end
diff --git a/lib/alchemy-api/keyword_extraction.rb b/lib/alchemy-api/keyword_extraction.rb
index <HASH>..<HASH> 100644
--- a/lib/alchemy-api/keyword_extraction.rb
+++ b/lib/alchemy-api/keyword_extraction.rb
@@ -7,7 +7,7 @@ module AlchemyAPI
     end
 
     def web_method
-      "TextGetRankedKeywords"
+      "#{method_prefix}GetRankedKeywords"
     end
   end
 end
makes webmothod construction more dynamic