Skip to main content

Define words from urbandictionary.com

Project description

https://badge.fury.io/py/helga-lingo.png https://travis-ci.org/narfman0/helga-lingo.png?branch=master

Define words from urbandictionary.com

Usage

!lingo <term>

Queries urbandictionary for the given term

Example:

!lingo dig

Returns:

A word to use when you're insulting someone. Like a "burn" or a "blast". An
insult. A dig isn't usually meant seriously. It's normally used in a joking
manner with a hint of truth. :)

!lingo <term> <index>

When a term has multiple definitions, one may retrieve a consecutive definition by incrementing index. It implicitly starts at 0, so not including it is like getting the 0th definition.

Example:

!lingo dig 2

Returns (the third definition content):

v.
1. To perceive and comprehend the nature and significane of; grasp; gather.
"Ya dig? Yeah I can dig it"
etc.

!lingo -d <term>

Execute regular lingo query, but return debug results as well

Methodology

Uses the official urbandictionary api, parsing the json response, and returning the definition according to the index the user provides. By default, this is the first, or 0th, index.

An example API call for the term ‘api’ would be:

api.urbandictionary.com/v0/define?term=api

License

Copyright (c) 2014-2016 Jon Robison

See included LICENSE for licensing information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for helga-lingo, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size helga-lingo-1.0.7.tar.gz (15.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page