Skip to main content

Using Fast String Search for Quran Text Auto-completion on Android

  • Conference paper
  • First Online:
Advances in Computing Systems and Applications (CSA 2018)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 50))

Included in the following conference series:

  • 500 Accesses

Abstract

Text auto-completion speeds up user input on the desktop PC by proposing a list of alternative words to select from after typing few characters. This useful feature is even more important on mobile devices because their human-computer-interface is restricted. We find it very helpful to extend auto-completion to the Holy Quran text, by allowing the user to select from alternative Ayat () where the characters he typed appear, instead of typing the Aya () he wants to cite manually or copying it from another source. To achieve this goal, we have implemented Quran text auto-completion on the Android platform by extending an open-source software keyboard application. As this feature needs to search quickly and repetitively the whole Quran text, we tested a number of string search methods, including the Boyer Moore algorithm, to determine the fastest search solution to use. The result is an application that proposes a fast and smooth user experience that is available freely in the play store under the name ().

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Boyer, R.S., Moore, J.S.: A fast string searching algorithm. Commun. Assoc. Comput. Mach. 20(10), 762–772 (1977)

    MATH  Google Scholar 

  2. Charras, C., Lecroq, T.: Handbook of Exact String-Matching Algorithms. King’s College, London (2004)

    MATH  Google Scholar 

  3. SoftKeyboard. https://android.googlesource.com/platform/development/+/master/samples/SoftKeyboard. Accessed 29 Dec 2017

  4. Android API guide: Creating an Input Method. https://developer.android.com/guide/topics/text/creating-input-method.html. Accessed 29 Dec 2017

  5. Android SDK version 23. https://developer.android.com/about/versions/marshmallow/android-6.0.html. Accessed 29 Dec 2017

  6. Android Studio version 2.3. https://developer.android.com/studio/releases/index.html. Accessed 29 Dec 2017

  7. QuranKeyboard source repository. https://github.com/cdjalel/QuranKeyboard. Accessed 29 Dec 2017

  8. Android indexOf Java source code. https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-23/blob/master/java/lang/String.java#L702. Accessed 29 Dec 2017

  9. Android fastIndexOf C source code. https://android.googlesource.com/platform/art/+/android-6.0.1_r79/runtime/native/java_lang_String.cc#66. Accessed 29 Dec 2017

  10. Android Regex Reference: The Pattern class. https://developer.android.com/reference/java/util/regex/Pattern.html. Accessed 29 Dec 2017

  11. Quran Keyboard application. https://play.google.com/store/apps/details?id=com.djalel.android.qurankeyboard. Accessed 29 Dec 2017

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Djalel Chefrour or Abdallah Amirat .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Chefrour, D., Amirat, A. (2019). Using Fast String Search for Quran Text Auto-completion on Android. In: Demigha, O., Djamaa, B., Amamra, A. (eds) Advances in Computing Systems and Applications. CSA 2018. Lecture Notes in Networks and Systems, vol 50. Springer, Cham. https://doi.org/10.1007/978-3-319-98352-3_11

Download citation

Publish with us

Policies and ethics