dipanjanS/practical-machine-learning-with-python

Very minor bug in contractions with "ain't"

bbookman opened this issue · 0 comments

The word ain't produces "as not" because expand_contractions has the following code:

expanded_contraction = first_char + expanded_contraction[1:]

Ain't does not fit this general rule