refactor alias discovery into function (#102)
change option name to "languages"; docs (#102)