49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
function queryNamesPOS (sWord1, sWord2) {
let lMorph1 = gc_engine.oSpellChecker.getMorph(sWord1);
let lMorph2 = gc_engine.oSpellChecker.getMorph(sWord2);
if (lMorph1.length == 0 || lMorph2.length == 0) {
return ":N:e:p";
}
let sGender1 = cregex.getGender(lMorph1);
let sGender2 = cregex.getGender(lMorph2);
if (sGender1 == ":m" || sGender2 == ":m") {
return ":N:m:p";
}
if (sGender1 == ":f" || sGender2 == ":f") {
return ":N:f:p";
}
return ":N:e:p";
|
|
|
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
function queryNamesPOS (sWord1, sWord2) {
let lMorph1 = gc_engine.oSpellChecker.getMorph(sWord1);
let lMorph2 = gc_engine.oSpellChecker.getMorph(sWord2);
if (lMorph1.length == 0 || lMorph2.length == 0) {
return ":N:e:p";
}
let [sGender1, ] = cregex.getGenderNumber(lMorph1);
let [sGender2, ] = cregex.getGenderNumber(lMorph2);
if (sGender1 == ":m" || sGender2 == ":m") {
return ":N:m:p";
}
if (sGender1 == ":f" || sGender2 == ":f") {
return ":N:f:p";
}
return ":N:e:p";
|