SkillAgentSearch skills...

Dict.cc

A command line interface tool for accessing dict.cc written in Haskell.

Install / Use

/learn @matt-snider/Dict.cc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

dict.cc

A command line tool for accessing dict.cc written in Haskell.

Usage

To look up German translations for an English word:

$ dict-cc dictionary
Englisch                                                      Deutsch
===========                                                ==========
ling. publ. dictionary                        Wörterbuch {n} [1324 ✓]
dictionary                                         Lexikon {n} [70 ✓]
dictionary                        Diktionär {n} {m} [veraltet] [66 ✓]

To choose the source and destination languages:

$ dict-cc --from es --to de diccionario
Spanisch                                             Deutsch
===========                                       ==========
ling. edit. diccionario {m}           Wörterbuch {n} [119 ✓]
edu. loc. diccionario {m} de bolsillo  Taschenwörterbuch {n}

To filter based on word type (e.g. noun or verb):

$ dict-cc --verb run
Englisch                                                    Deutsch
============                                             ===========
to run                                               laufen [3148 ✓]
to run                                               rennen [1494 ✓]
to run sth. [manage, lead]                      etw. leiten [1108 ✓]
# ...

$ dict-cc --noun run
Englisch                                                                               Deutsch
============                                                                        ===========
run                                                                            Lauf {m} [124 ✓]
run [sequence, cycle]                                                          Ablauf{m} [37 ✓]
cloth. run [in stockings, tights]                                          Laufmasche{f} [25 ✓]
transp. travel run                                                              Fahrt{f} [23 ✓]
# ...

Configuration

Adding a YAML file .dict-cc at XDG_CONFIG_HOME (typically ~/.config) allows you to configure the default options for --to, --from and --limit.

For example to search by default for translations from Spanish to German, and limit to 10 results:

defaults:
  from: es
  to: de
  limit: 10

Now:

$ dict-cc diccionario
Spanisch                                   Deutsch
=========                                 ========
ling. edit. diccionario {m}      94 Wörterbuch {n}

Building

Clone the repository and build with stack:

$ git clone https://github.com/matt-snider/dict.cc
$ cd dict.cc
$ stack build

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks0

Languages

Haskell

Security Score

75/100

Audited on Feb 17, 2024

No findings