Skip to content

Conversation

@brendanthomas1
Copy link

No description provided.

@@ -0,0 +1,38 @@
def word_counter(filepath)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

word_counter would be a good name for a class. The best names for methods are either nouns representing the result, or verbs representing the action taken.

@sjreich
Copy link

sjreich commented May 23, 2016

There are some tough choices to make in the regex-stripping section. As it stands, this will treat it's and its as the same word, and it won't count 1997 as a word at all.

But overall this is on the right track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants