DOKK / manpages / debian 12 / libcanna1g-dev / RkGetLex.3.en
RKGETLEX(3) Library Functions Manual RKGETLEX(3)

RkGetLex - get morphemic information on each word that makes up the current candidate

#include <canna/RK.h>
int RkGetLex(cxnum, lex, maxlex)
int cxnum;
RkLex *lex;
int maxlex;

RkGetLex gets morphemic information on each word that makes up the current candidate, and stores it in the array lex in sequence from the left. Right-side word information is truncated when the number of words exceeds maxlex.

The fields of the structure lex are loaded with the following:

Byte length of the reading of a word
Byte length of the kanji of the word
Row number of the word
Column number of the word
Not used

This function returns -1, without doing anything, if it has been run in a nonconversion mode context.