Skip to content

Conversation

@dbsaymen
Copy link

No description provided.

Copy link
Contributor

@kdavis-mozilla kdavis-mozilla left a comment

Choose a reason for hiding this comment

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

You aren't considering all languages. For example you are removing valid characters in Greek.

@dbsaymen
Copy link
Author

i will move the filter to the "fr" file

import re

# All special characters
FILTER_SYMBOLES_REG = re.compile(
Copy link
Contributor

Choose a reason for hiding this comment

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

While FILTER_SYMBOLES_REG seems useful what might be better is a white list instead of a black list.

For example, the characters 男性 are not in your black list and would pass through un-altered.

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