Kiwix-android: Suggest similarly spelled search results

Created on 18 Mar 2017  路  11Comments  路  Source: kiwix/kiwix-android

_From @rashiq on June 8, 2016 13:6_

Reported by rauldelacalle on 2015-03-09 01:16 UTC
SPANISH;

Buen d铆a.

Descargue la aplicacion Kiwix para android y la instal茅. Descargu茅 el Wikcionario en espa帽ol, lo descomprim铆 y lo cargue en la memoria externa del telefono inteligente. Desde la aplicaci贸n leo el archivo y todo est谩 bien.

Pero cuando escribo una palabra de manera equivocada el Wikcionario no me corrige. Ejemplo: en espa帽ol la forma correcta es: Zapato. Si escribo sapato la aplicaci贸n me dice: Error: "fall贸 la carga del art铆culo sapato", pero no me corrige deber铆a mostrame las opciones. Es decir que tengo que ser un experto en el idioma para buscar, no me sirve de esa manera pues el objetivo es que me corrija cuando yo estoy equivocado.

Si hago lo mismo en el computador me muestra como opciones:

  1. Zapato
  2. Calzado
  3. Pasta de zapatos
  4. Es posible mejorar la aplicaci贸n para android?
  5. Estoy fallando en algo?

ENGLISH:

Good day.

Download the Kiwix application for android and I installed it. I downloaded the Wiktionary in Spanish, unzipped it and upload it to the external memory of the smart phone. Since I read the application file and all is well.

But when I write the wrong word Wiktionary does not correct me. Example: in Spanish is written: ZAPATO. If SAPATO write the application tells me: Error: "failed load SAPATO article", but does not correct me should show me the options. You mean I have to be an expert in the language to find, does not help me that way because the objective is to correct me when I'm wrong.

If I do the same on the computer shows me as options:

  1. Zapato
  2. Calzado
  3. Pasta de zapatos
  4. It is possible to improve the application for android?
  5. I'm failing at something?

_Copied from original issue: kiwix/kiwix#193_

enhancement search stale

Most helpful comment

Probably something which needs to be delegated to the kiwix-lib/Xapian. I strongly suspect there is nothing much we should do on Java side.

All 11 comments

_From @rashiq on June 8, 2016 13:14_

Updated by kelson42 on 2015-06-23 04:55 UTC

  • labels: --> android
  • Group: v1.0 --> None

This appears to be a search limitation. @kelson42 what is the desktop version do, that the app doesn't that makes search more intelligent?

_From @Frenzie on March 2, 2017 14:32_

For search query results it would be nice to make them ignore case, diacritics, and possibly punctuation (except that the matches closest to what you typed should come higher in the results list). Especially on a phone it's much easier to type deja vu or deja-vu than d茅j脿-vu. Basically like Aard Dictionary.

@mhutti1 I'll give it a shot!

Probably something which needs to be delegated to the kiwix-lib/Xapian. I strongly suspect there is nothing much we should do on Java side.

We could probably play around with levenshtein distance, if we want to have something really rudimentary on the java side

All of this should be done in the kiwix-lib anyway. The libzim has already a Levenshtein distance implementation. We shoudl probably check if the ticket is still valid, a lot of things has been improved meanwhile on the search.

Will generate a new WPES ZIM file and check this again.

Gotcha

@kelson42 The latest Kiwix for Android on F-Droid and Google Play (2.2) is from almost exactly one year ago, 2017-03-21, so unsurprisingly when you type deja vu it doesn't find d茅j脿-vu.

Is there some kind of nightly build easily available to test with or would one have to build it?

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings