title: How to identify if user is typing in RTL or LTR language?
body: <p>I want imitate google's input,
  It automatically change input's typing direction based on the language you're typing in.</p>
  
  <p>How can I identify if user is typing in RTL or LTR language?
  It must work cross-browser.</p>