The Nahuatl API is an experimental attempt at tracking the Nahuatl language. Nahuatl is the largest native language spoken in Mexico with around 1.7 million speakers. Nonetheless finding resources to learn the language online is difficult as it is overshadowed by more internationally established languages and few standardized sources exist for it in the development world. This is an experiment to alleviate that.
The API currently lives at http://nahuatl-api.herokuapp.com/ It currently supports Post, Patch and Get requests to the word database.
To see its current Front-End Interface, checkout: http://study-nahuatl.herokuapp.com/
Here are the Routes to use:
Get all words(word schema)in the API:
Find a word by searching for it in Nahuatl:
http://nahuatl-api.herokuapp.com/language/nahuatl/words/:word
Find a word by searching for it in English:
http://nahuatl-api.herokuapp.com/language/nahuatl/words/en/:word
Post a word in Nahuatl to the API:
Use the following JSON object in the body for guidance:
{
"word_native": String(Native word),
"word_english": String(english translation),
"correct_responses": Array(other possible translations/english synonyms of word_english),
"source": String(Where is this word from? Slang? Classical Nahuatl? Veracruz dialect? etc.)
}
Find a word by its Nahuatl spelling and patch its object:
http://nahuatl-api.herokuapp.com/language/nahuatl/words/:word
Use the following JSON object in the body for guidance:
{
"word_native": String(Native word),
"word_english": String(english translation),
"correct_responses": Array(other possible translations/english synonyms of word_english),
"source": String(Where is this word from? Slang? Classical Nahuatl? Veracruz dialect? etc.)
}