Currently, the newtaxonflag is set for novel taxa of rank genus and below. However, there is no way of clearly marking novel families yet. The current state of the code is set to assume rank to be genus whenever there is a single name entry (except if a subgenus is detected).
elementCount = len(taxonNameEntry.strip().split(' '))
subgenusCount = 0
if '(' in taxonNameEntry: subgenusCount = 1
if ' var. ' in taxonNameEntry: rankid = 240
elif ' subvar. ' in taxonNameEntry: rankid = 250
elif ' f. ' in taxonNameEntry: rankid = 260
elif ' subf. ' in taxonNameEntry: rankid = 270
elif elementCount == 3 + subgenusCount: rankid = 230
elif elementCount == 2 + subgenusCount: rankid = 220
elif elementCount == 1 + subgenusCount: rankid = 180
Currently, the newtaxonflag is set for novel taxa of rank genus and below. However, there is no way of clearly marking novel families yet. The current state of the code is set to assume rank to be genus whenever there is a single name entry (except if a subgenus is detected).