Giter Club home page Giter Club logo

wordbot's Introduction

wordbot

👋 Meet Wordbot

There are 171,476 words in the English language, and Wordbot knows them backward, forward, and sorted by character length. Request a hundred verbs, a thousand nouns, or even thirty-three dinosaur names, and Wordbot will instantly deliver them in a tidy array.

📖 What can you do?

So glad you asked! First things first, you can request a word:

https://api.noopschallenge.com/wordbot

And you'll receive:

{
  "words": ["pepperoni"]
}

Gosh, Wordbot's a mindreader! 🍕

If you need 100 words, just pass a count param:

https://api.noopschallenge.com/wordbot?count=100

{
  "words":
    [
      "extracorporeal",
      "behooves",
      "superregionals",
      "stepmother",
      "heckle",
      "clanks",
      ...
      "hippest"
    ]
}

Now you have a lot of words to work with—but they might not be exactly what you're looking for. There are, after all, a lot of words in the dictionary (did we mention 171,476?), and those words have a lot of different types: nouns, verbs, adjectives, and...like, more types that we don't even have the words to describe.

Wordbot's on your side, and has built sets of words to help you write more interesting amazingly useless software. If, for instance, you wanted to request only dinosaur names, you'd access:

https://api.noopschallenge.com/wordbot?count=100&set=dinosaurs

{
  "words":
    [
      "Xixiposaurus",
      "Ischyrosaurus",
      "Crocodylomorph",
      ...
      "Tatankaceratops"
    ]
}

Rawr! 🦕 Now you can replace every noun in your program with dinosaur names.

Wordbot has predefined sets for nouns, verbs, adjectives—and a number of special sets like cats, dogs, fruits, and wrestlers (complete list in the API section below).

✨ A few ideas

  • Replace all of your interface commands in your code editor with dinosaur names.
  • Create a generator to randomly name your next project (like "reimagined-potential-broccoli").
  • Build a Madlibs generator that uses Wordbot's output to tell your story.

🤖 API basics

The primary endpoint is api.noopschallenge.com/wordbot

The endpoint accepts two parameters, both optional:

  • count (optional, numeric): Between 1 and 1000. Number of words to return.
  • set (optional, string): any of a predefined set of strings, listed below.

Request a single word:

https://api.noopschallenge.com/wordbot

{
  "words": ["pepperoni"]
}

Request 100 words:

https://api.noopschallenge.com/wordbot?count=100

{
  "words":
    [
      "extracorporeal",
      "behooves",
      "superregionals",
      "stepmother",
      "heckle",
      "clanks",
      ...
      "hippest"
    ]
}

To get a list of the available sets, request:

https://api.noopschallenge.com/wordbot/sets

Which will return an array of sets:

[ "adjectives", "adverbs", "all", "animals", "cats", "dinosaurs", ... "weather", "wrestlers" ]



To request a set of words, pass the `set` parameter, like so:

`https://api.noopschallenge.com/wordbot?count=100&set=dinosaurs`

{ "words": [ "Xixiposaurus", "Ischyrosaurus", "Crocodylomorph", ... "Tatankaceratops" ] }


Complete API documentation: [API.md](./API.md)

More about Wordbot here: https://noopschallenge.com/challenges/wordbot


---

Subsets of words provided by [@dariusk](https://github.com/dariusk)'s excellent [corpora](https://github.com/dariusk/corpora).

wordbot's People

Contributors

doolittle 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.