# Language Search Field Configuration

**URL:** <https://forum.door43.org/t/language-search-field-configuration/81>\
**Category:** Developer Info\
**Created:** [June 26, 2018, 5:13pm UTC](https://forum.door43.org/t/language-search-field-configuration/81 "2018-06-26T17:13:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jag3773](https://forum.door43.org/user_avatar/forum.door43.org/jag3773/32/3_2.png) [@jag3773](https://forum.door43.org/u/jag3773)\
**Post date:** [June 26, 2018, 5:13pm UTC](https://forum.door43.org/t/language-search-field-configuration/81/1 "2018-06-26T17:13:36Z")

</div>

Several pieces of software have a language search field which attempts to make it easy for users to find their language amidst the other 7,000+ options. The search algorithm should be implemented in the following manner to ensure proper user experience:

```
if length of input string is <= 3:
    return languages that have a language_code or
    country_code that STARTS WITH the entered string
else:
    return languages where the entered string is found
    WITHIN language_code, language_name, language_region_name
```
