detect if a file extension is text/ binary or file is text/ binary. uses the `file.ext` and the `file.ext.exttwo` detection pattern structure