title: Static spell checking behavior
body: <p>I am trying to implement behavior similar to spell check, however not exactly same. By static, I mean only on certain words.</p>
  
  <p>So let's say I have an array of 10 strings.</p>
  
  <pre><code>String[] originalWords = new String[] {
          "Apple", "Banana", "Orange", "Pear", "Grape",
          "Pineapple", "Lemon", "Mango", "Cherry", "Peach"
  };
  </code></pre>
  
  <p>Now, I have an <code>EditText</code> where user can type in something. After user finishes typing (they press next, etc.), I want to perform a check on what they typed in.</p>
  
  <pre><code>String userInput = String.valueOf(editText.getText()).trim();
  </code></pre>
  
  <p>Let's say <code>userInput</code> value is <code>appla</code>. That means what user typed in is only one letter off the world <code>Apple</code> (which is in the array).</p>
  
  <p>That's the check I want to implement. Whatever the user types in, if one SIMILAR (1 or 2 letters off) word exists in the array, I want to get that word. How would I go about implementing that?</p>
  
  <p>Result examples:</p>
  
  <pre><code>aoole ==&gt; Apple
  orenge ==&gt; Orange
  Cheery ==&gt; Cherry
  </code></pre>