mardi 27 juillet 2021

Finding the meaning of a dictionary word using QRegularExpression

I have two sentences in text file name e.g:

Abbey n. (pl. -s) 1 building(s) occupied by a community of monks or nuns. 2 the community itself. 3 building that was once an abbey.

Abbot n. Head of a community of monks. [old english from latin abbas]

I can match the word Abbey using

QRegularExpression re("Abbey", QRegularExpression::CaseInsensitiveOption); QRegularExpressionMatch match = re.match(txtFile);

What will the process to extract meaning Abbey, the meaning would be "building(s) occupied by a community of monks or nuns"?

Aucun commentaire:

Enregistrer un commentaire