Project

slg

0.0
No commit activity in last 3 years
No release in over 3 years
Get words' definitions from Slengo on the command-line.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 12.3
~> 0.18
~> 3.3
~> 3.8

Runtime

~> 0.0
~> 1.10
 Project Readme

slg

Gem Version

Inline docs

slg is a command-line tool for Slengo, the Italian Urban Dictionary.

See ud for the English equivalent.

Example

$ slg zisca
* zisca (100/0):

    Sigaretta.

Example:
    Oh, amo' che mi alzi una zisca?

Install

gem install slg

Windows users: You will need the Win32 Console ANSI gem for the colored output. Install it with gem install win32console.

Usage

From the command-line:

$ slg <word>

It supports a few options:

  • -n, --count: maximum number of definitions (default: 1)
  • --no-color: disable colored output.
  • -b, --browser: open the results in your browser instead of displaying them in the console

In a Ruby script:

require "slg"

defs = Slg.query("culo")