Feature/text entry lang

@swarajban, @jagill, check it out when you have a chance
style/safety, but I would check if length > 0 || length is undefined. We should try to avoid statements that are 'truthy'