Skip to content

An application to perform synonyms related tasks

License

Notifications You must be signed in to change notification settings

dariusj/synonyms

Repository files navigation

Synonyms

Continuous Integration

An application with multiple entrypoints to perform synonym-related tasks.

This project is a personal playground in Scala to try out different libraries and techniques.

Requirements

Entrypoints

HTTP Server

The server can be started by executing the following command:

bloop run http

The following endpoints are supported:

  • Check if two words are synonyms
    GET /synonyms?words=foo&words=bar[&thesaurus=datamuse]
  • List synonyms for a given word
    GET /synonyms/foo[?thesaurus=datamuse]

Command line

Command line invocation supports the following commands:

  • Check if two words are synonyms
    bloop run cli --args check [--args '--format=json'] --args house --args pad
  • List synonyms for a given word
    bloop run cli --args list [--args '--format=json'] [--args '--source|-s datamuse'] --args bar

Thesauruses

The app currently supports the following thesauruses:

Default is all thesauruses.

Run tests

bloop test core cli http

Build a Docker image for the http server

sbt http/Docker/publishLocal

About

An application to perform synonyms related tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages