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.

Source Distribution

helga-lingo-1.0.7.tar.gz (15.7 kB view details)

Uploaded Source

File details

Details for the file helga-lingo-1.0.7.tar.gz.

File metadata

  • Download URL: helga-lingo-1.0.7.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for helga-lingo-1.0.7.tar.gz
Algorithm Hash digest
SHA256 97a3b704eba5ed35c34226c08c4f83afe1ea31749642c7f049a87b390d1403c9
MD5 46b15af76c8678ad28e9ce42ea17dd04
BLAKE2b-256 e82d5abdc8712dcc8a782e57c0b64d037bfa36d1cff6ba771f912def1c4880d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page