Automatic taxonomy through consistent application of tree-based thresholding