[sword-devel] API morph search (greek)

pierre amadio amadio.pierre at gmail.com
Sun Jul 5 14:33:46 EDT 2020


Hello.

I do not understand how to find all occurence of verb using aorist
indicative 3 person plural using the API.

With diatheke, i can get an output with:
diatheke -b MorphGNT -o avlmn -f OSIS -s phrase -k "V-AAI-3P"

By example such an entry would generate a hit:
<w lemma="lemma.Strong:ἐπιχειρέω strong:G2021"
morph="robinson:V-AAI-3P">ἐπεχείρησαν</w>

I once had a similar issue with hebrew that i solved after asking for
help here with the following code:

##########
    targetModule="OSHB";
    searchType=-3;
    //<w morph="oshm:HVqp3ms" n="1.1" savlm="strong:H02421">חַי</w>
    searchQuery="Word//Morph./HVqp3ms/";

    it = manager.Modules.find(targetModule);
    if (it == manager.Modules.end()) {
         cout << "No such module: " << targetModule <<"\n";
    }
    target = (*it).second;
    listkey = target->search(searchQuery, searchType);
    while (!listkey.popError()) {
            std::cout << (const char *)listkey <<"\n";
            //if (listkey.getElement()->userData) std::cout << " : "
<< (__u64)listkey.getElement()->userData << "%";
            showVerse(targetModule,(const char *) listkey);
            std::cout << std::endl;
            listkey++;
    }
##########

I do not find any hit with the following modification if i try to do
something similar for greek:

    targetModule="MorphGNT";
    searchType=-3;
    searchQuery="Word//Morph./V-AAI-3P/";

Any one has an idea what i am doing wrong ?


More information about the sword-devel mailing list