Skip to content

Filtering Non-English Apps in Mission 350 #206

Open

Description

@puhize

The function for filtering out non-english apps doesn't handle all cases. If we review the Apple Store dataset, we see app names that consist of only three characters, which are classified as English apps using the given function because the count of non-ascii characters is not larger than 3.
Proposed solution:

def is_english(string):
    non_ascii = 0
    
    for character in string:
        if ord(character) > 127:
            non_ascii += 1
    
    if non_ascii > 3:
        return False
    if non_ascii == len(string):
       return False
   
    return True

Activity

  1. changed the title [-]Filtering Non-English App in Mission 350[/-] [+]Filtering Non-English Apps in Mission 350[/+] on Mar 16, 2025
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