No commit activity in last 3 years
No release in over 3 years
A Lita handler that performs Wolfram Alpha queries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.3
>= 1.6.6
 Project Readme

lita-wolfram-alpha

Build Status Coverage Status

lita-wolfram-alpha is a handler for Lita that performs Wolfram Alpha queries. Wolfram Alpha is a computational knowledge engine that draws upon a comprehensive knowledge base of curated structured data to answer questions spanning a wide variety of topics.

Installation

Add lita-wolfram-alpha to your Lita instance's Gemfile:

gem "lita-wolfram-alpha"

Configuration

In order to use this plugin, you must obtain a Wolfram Alpha App ID.

Lita.configure do |config|
  config.handlers.wolfram_alpha.app_id = "YOUR APP ID GOES HERE"
end

Optional attributes

  • hide_link (boolean) - By default, Lita returns a Wolfram Alpha link containing additional information after providing the best answer. If hide_link is set to true, this link is omitted.
Lita.configure do |config|
  config.handlers.wolfram_alpha.hide_link = true
end

Usage

Specify a Wolfram Alpha query using the wa command.

<me>   lita: wa most commonly spoken languages in california
<lita> only English | 19.65 million people
<lita> Spanish or Spanish Creole | 9.961 million people
<lita> Chinese | 1.037 million people
<lita> Tagalog | 765033 people
<lita> Vietnamese | 512456 people
<lita> (2008-2012 American Community Survey 5-year estimates)
<lita> http://www.wolframalpha.com/input/?i=most+commonly+spoken+languages+in+california

License

MIT