Esta es una biblioteca no oficial que te permite:
This is an unofficial library that allows you to:
Obtener definiciones de una palabra.
Get definitions of a word.
DRAE drae = new DRAE();
IWord[] words = await drae.FetchWordAsync("casa");
foreach (IWord word in words)
{
Console.WriteLine(word);
}
Obtener definiciones de una palabra por identificador.
Get definitions of a word by id.
DRAE drae = new DRAE();
IWord word = await drae.FetchWordByIdAsync("7lsKMtR");
Console.WriteLine(word);
Obtener la palabra del día.
Get the word of the day.
DRAE drae = new DRAE();
IEntry entry = await drae.GetWordOfTheDayAsync();
Console.WriteLine(entry);
Obtener una palabra aleatoria.
Get a random word.
DRAE drae = new DRAE();
IWord word = await drae.GetRandomWordAsync();
Console.WriteLine(word);
Buscar las entradas de una palabra.
Search the entries of a word.
DRAE drae = new DRAE();
IEntry[] entries = await drae.SearchWordAsync("y");
Console.WriteLine(string.Join(", ", entries));
Buscar palabras clave.
Search for keywords.
DRAE drae = new DRAE();
string[] keys = await drae.GetKeysAsync("hola");
Console.WriteLine(string.Join(", ", keys));
Obtener todas las palabras que comienzan con una cadena.
Get all words that start with a string.
DRAE drae = new DRAE();
string[] words = await drae.GetWordsStartWithAsync("sa");
Console.WriteLine(string.Join(", ", words));
Obtener todas las palabras que continenen una cadena.
Get all words that contain a string.
DRAE drae = new DRAE();
string[] words = await drae.GetWordsContainAsync("sa");
Console.WriteLine(string.Join(", ", words));
Obtener todas las palabras del diccionario.
Get all word of the dictionary.
DRAE drae = new DRAE();
string[] allWords = await drae.GetAllWordsAsync();
Console.WriteLine(string.Join(", ", allWords));