First attempt at brevity penalty. If Wikipedia is something to go by, this should be a correct implementation

Something to note, in the original version's brevity function, it may be necessary to use abs(y - len(output_ngrams))
for the lamba in its min() statement.