[Cs3] Lab 2 Question

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Jan 23 15:24:50 EST 2020


> 
> For Lab 2, if we have two phrases separated by a non-alnum character,
> should we treat the surrounding words as two separate words or as one word?
> 
> So if the text document had "a-b", would we store it as "ab" or as "a" and
> "b"?
> 

As per lab assignment, A-B are two separate words, so are 

  isn't     and
  Mikhail's 

Since neither dash nore apostrophe is an alfanumberic character. 

However, you are free to code this lab so that it is not the case:
dash and apostrophe is ignored and your word counting is truer to
English grammar.

Thanks,
--
Mikhail


More information about the cs3 mailing list