Problem using arabic bible in search

Mina Hany
Mina Hany Member Posts: 4 ✭✭
edited November 2024 in English Forum

Just a small problem with search in arabic..

In arabic the equivalent of 'and' is just one letter 'و'
now the problem is, in arabic the 'and' becomes one word with the word that it follows..

so for example 'and god' is actually 'andgod'  
there is no space between 'و' and the word that follows it although they are technically two words.

Now the problem is that the search works on full words only, so if I search for 'god' I don't get results where there is an 'and' before God and vice versa.

The simplest solution would be to have an alternation in all arabic queries. So when someone searches for god we search for 'god' OR 'andgod' (just append 'و' to the beginning of the query).

Is there any hopes to get that fixed? It is very confusing to users.. I tried to put a vertical bar in the query in hopes that the api allows some sort of alternation in the query but that doesn't work.

Specific Arabic bible ID is ar-vandyke

Thank you.

Comments

  • George Somsel
    George Somsel Member Posts: 10,150 ✭✭✭

    Mina Hany said:

    Just a small problem with search in arabic..

    In arabic the equivalent of 'and' is just one letter 'و'
    now the problem is, in arabic the 'and' becomes one word with the word that it follows..

    so for example 'and god' is actually 'andgod'  
    there is no space between 'و' and the word that follows it although they are technically two words.

    Now the problem is that the search works on full words only, so if I search for 'god' I don't get results where there is an 'and' before God and vice versa.

    The simplest solution would be to have an alternation in all arabic queries. So when someone searches for god we search for 'god' OR 'andgod' (just append 'و' to the beginning of the query).

    Is there any hopes to get that fixed? It is very confusing to users.. I tried to put a vertical bar in the query in hopes that the api allows some sort of alternation in the query but that doesn't work.

    Specific Arabic bible ID is ar-vandyke

    Thank you.

    In Hebrew the situation is the same—the conjunction is joined to the "following" word whether that is a name, pronoun or a verb.  While by using a morph search it is possible to specify a waw-consecutive, it is not possible to exclude the conjunction.  I imagine that this is something you simply will need to accept and solve by searching through the hits to find those which to not have a conjunction.

    george
    gfsomsel

    יְמֵי־שְׁנוֹתֵינוּ בָהֶם שִׁבְעִים שָׁנָה וְאִם בִּגְבוּרֹת שְׁמוֹנִים שָׁנָה וְרָהְבָּם עָמָל וָאָוֶן

  • George Somsel
    George Somsel Member Posts: 10,150 ✭✭✭

    Mina Hany said:

    Just a small problem with search in arabic..

    In arabic the equivalent of 'and' is just one letter 'و'
    now the problem is, in arabic the 'and' becomes one word with the word that it follows..

    so for example 'and god' is actually 'andgod'  
    there is no space between 'و' and the word that follows it although they are technically two words.

    Now the problem is that the search works on full words only, so if I search for 'god' I don't get results where there is an 'and' before God and vice versa.

    The simplest solution would be to have an alternation in all arabic queries. So when someone searches for god we search for 'god' OR 'andgod' (just append 'و' to the beginning of the query).

    Is there any hopes to get that fixed? It is very confusing to users.. I tried to put a vertical bar in the query in hopes that the api allows some sort of alternation in the query but that doesn't work.

    Specific Arabic bible ID is ar-vandyke

    Thank you.

    Have you tried the ANDNOT operator?  You should be able to specify "God ANDNOT andGod."  Note that the operator must be in all caps.

    george
    gfsomsel

    יְמֵי־שְׁנוֹתֵינוּ בָהֶם שִׁבְעִים שָׁנָה וְאִם בִּגְבוּרֹת שְׁמוֹנִים שָׁנָה וְרָהְבָּם עָמָל וָאָוֶן

  • Mina Hany
    Mina Hany Member Posts: 4 ✭✭

    I think you misunderstood me.

    I don't have the results that contain 'and' at all if I search for one word. If I search for 'god' I never get any results that have 'god' after the 'and' but I want them to appear

    It is not a matter of results appearing when they shouldn't appear it is a matter of results not appearing when they should.

    But thanks to your ANDNOT tip, I tried "god OR andgod" and that worked.. Thanks very much for the quick reply.

    Topic can now be closed :)