Blame linginfo.h

Packit ca9683
/* Copyright (C) 2003 Nadav Har'El and Dan Kenigsberg */
Packit ca9683
Packit ca9683
#ifndef INCLUDED_LINGINFO_H
Packit ca9683
#define INCLUDED_LINGINFO_H
Packit ca9683
Packit ca9683
#include "hspell.h"
Packit ca9683
Packit ca9683
/* load description and stem files into memory */
Packit ca9683
int linginfo_init(const char *dir);
Packit ca9683
Packit ca9683
/* free'em */
Packit ca9683
int linginfo_free(void);
Packit ca9683
Packit ca9683
/* translate the i'th description of a word into human-readable text */
Packit ca9683
char *linginfo_desc2text(char *text, const char *desc, int i);
Packit ca9683
Packit ca9683
/* translate the i'th description of a word into older-style prefix specifier,
Packit ca9683
 * such as the PS_* that are kept in .prefixes */
Packit ca9683
int linginfo_desc2ps(const char *desc, int i);
Packit ca9683
Packit ca9683
/* translate the i'th stem-index of a word into human-readable text */
Packit ca9683
char *linginfo_stem2text(const char *stem, int i);
Packit ca9683
Packit ca9683
/* search for a word in the linginfo database. if a the word is found, fill the
Packit ca9683
 * pointed desc and stem buffers with the relevant (opaque) data. */
Packit ca9683
int linginfo_lookup(const char *word, char **desc, char **stem);
Packit ca9683
Packit ca9683
	
Packit ca9683
#endif /* INCLUDED_LINGINFO_H */