Feature/text entry lang

@swarajban, @jagill, check it out when you have a chance
I know we do this in other places, but this is equivalent to 
```javascript
if (result === undefined)
```