initially written as a portable alternative, this libraries functionality is similar to http_negotiate_language.