Skip to content

The test corpus for 10 (find unique words) has a lot of words that are not detected correctly by the solution #9

Description

@mvaneerde

The solution to problem 10 (find unique words) considers a "word" to be anything that matches the pattern r"[0-9a-zA-Z-']+"

Alas, there are many words in shakespeare.txt that contain words outside of this pattern. The first few are:

  • Personæ
  • Phœbus
  • dæmon
  • Cæsar
  • Æneas

These are mis-detected as

-'Person'
-['Ph', 'bus']
-['d', 'mon']
-['C', 'sar']
-'neas'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions