Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

nhoffmann/Ord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ord

'Ord' is danish and/or swedish for 'word'. Ord is a word search machine that may be fed with a list of words and you can then query it for subsets, e.g. all words starting with a certain phrase. To be honest it is pretty much a clone of morewords.com but grew out of the need to have the results in json instead of html to be able to access it in a service architecture.

You can query the service at ord.zentralmaschine.net

API

The response will be in json and follow this format

GET http://example.com/<method>/<word>

{
  "query_string":"<word>",
  "word_in_list":true | false,
  "content":[] | {}
}

/word/<word>

Example:

GET http://example.com/word/beer

{
  "query_string":"beer",
  "word_in_list":true,
  "content":{
    "previous":"beeps",
    "next":"beerier"
  }
}

GET http://example.com/word/reeb

{
  "query_string":"xrfg",
  "word_in_list":false,
  "content":{}
}

/starts-with/<word>

Example:

GET http://example.com/starts-with/beer

{
  "query_string":"beer",
  "word_in_list":true,
  "content":[
    "beer",
    "beerier",
    "beeriest",
    "beers",
    "beery"
  ]
}

/ends-with/<word>

Example:

GET http://example.com/ends-with/beer

{
  "query_string":"beer",
  "word_in_list":true,
  "content":[
    "ambeer",
    "beer"
  ]
} 

/contains/<word>

Example:

GET http://example.com/contains/beer

{
  "query_string":"beer",
  "word_in_list":true,
  "content":[
    "ambeer",
    "ambeers",
    "bebeeru",
    "bebeerus",
    "beer",
    "beerier",
    "beeriest",
    "beers",
    "beery"
  ]
}

Releases

No releases published

Packages

No packages published

Languages