Giter Site home page Giter Site logo

chroline / words-aas Goto Github PK

View Code? Open in Web Editor NEW
82.0 2.0 7.0 404 KB

๐Ÿ“˜ a simple API to generate unique randomized words & phrases.

Home Page: https://words-aas.now.sh

License: MIT License

JavaScript 0.56% TypeScript 51.61% CSS 47.84%
aas typescript api words english

words-aas's Introduction

Words as a Service

Hosted on Vercel License: MIT contributions welcome chroline/words-aas


A simple API to generate unique randomized words & phrases.

Usage

Word Types

words-aas supports 8 word types that can be used to form a phrase:

  • adjective
  • adverb
  • animal
  • bodyParts
  • gerunds
  • pluralNouns
  • verbs (imperative mood)

Additional Features

When placed at the beginning of a phrase, the word a will be transformed into an if the second word in the phrase begins with a vowel (i.e. a/an squid/octopus). You can also use any additional words to form a phrase like the, it, is, etc.

Forming a phrase

To form a phrase, connect the type(s) of words you want with a comma. For example, to form a phrase consisting of a verb, the, and a plural noun, you would use the following: the,pluralNoun,is,gerund for the slug API or the $pluralNoun is $gerund for the query API.

API

Slug API

Make a GET request to https://words-aas.now.sh/api/PHRASE, where PHRASE is the type of phrase desired.

curl --request GET \
  --url 'https://words-aas.vercel.app/api/the%20$pluralNoun%20is%20$gerund'

Query API

or, POST to https://words-aas.now.sh/api/ with a query of the type of phrase desired.

curl --request POST \
    --url https://words-aas.vercel.app/api/ \
    --header 'content-type: application/json' \
    --data '{
  	  "query": "the $pluralNoun is $gerund"
    }'

words-aas's People

Contributors

chroline avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.