NaCTeM

Acromine REST Service (Request Access)

Acromine REST Service provides a RESTful interface, where you can use the Acromine dictionary from your client programs.

Client sample

Acromine REST API

This Web service receives a query abbreviation or fullform as parameters, and returns abbreviation definitions in JSON format.

Request URL (GET)

To obtain abbreviation definitions, send an HTTP GET request to the following URL:

http://www.nactem.ac.uk/software/acromine/dictionary.py

Request parameters

This table explains the parameters for the service.

Name Type Description
sf string Abbreviation for which definitions are to be retrieved.
lf string Fullforms for which abbreviations to be retrieved.

Response

The service returns an array in JSON format. Each element in the array consists of the following members:

Name Type Description
sf string Abbreviation.
lfs array of longform objects The array of longforms associated with the shortform.

Longform objects have the following members:

Name Type Description
lf string Representative form of the full form.
freq integer The number of occurrences of the definition in the corpus.
since integer The year when the definition appeared for the first time in the corpus.
vars array of variation objects An array of variation objects that gather surface expressions of the full form in the corpus.

Variation objects have the following members:

Name Type Description
lf string The surface form of the full form.
freq integer The number of occurrences of the surface form in the abbreviation definition in the corpus.
since integer The year when the surface form appeared for the first time in the corpus.