TEAMMATES / teammates

This is the project website for the TEAMMATES feedback management tool for education
https://teammatesv4.appspot.com/
GNU General Public License v2.0
1.66k stars 3.28k forks source link

[#13104] Add mappings #13166

Open itstrueitstrueitsrealitsreal opened 1 month ago

itstrueitstrueitsrealitsreal commented 1 month ago

Fixes #13104

Outline of Solution

Made the dictionary of mappings in 3f5f68d more extensive, covering more countries and cases.

Updated mappings:

    const countryMapping: { [key: string]: string } = {
      'united states': 'USA',
      'u.s.a': 'USA',
      'u.s.a.': 'USA',
      us: 'USA',
      america: 'USA',
      'united states of america': 'USA',

      'united kingdom': 'UK',
      uk: 'UK',
      britain: 'UK',
      'great britain': 'UK',
      england: 'UK',

      'united arab emirates': 'UAE',
      uae: 'UAE',
      emirates: 'UAE',

      deutschland: 'Germany',
      germany: 'Germany',

      netherlands: 'Netherlands',
      'the netherlands': 'Netherlands',
      nederland: 'Netherlands',
      holland: 'Netherlands',

      belgium: 'Belgium',
      belgië: 'Belgium',

      brazil: 'Brazil',
      brasil: 'Brazil',

      spain: 'Spain',
      españa: 'Spain',

      mexico: 'Mexico',
      méxico: 'Mexico',

      italy: 'Italy',
      italia: 'Italy',

      china: 'China',
      'peoples republic of china': 'China',
      prc: 'China',

      france: 'France',
      'republic of france': 'France',

      india: 'India',

      japan: 'Japan',

      russia: 'Russia',
      'russian federation': 'Russia',

      'south korea': 'South Korea',
      'republic of korea': 'South Korea',
      korea: 'South Korea',

      'north korea': 'North Korea',
      'democratic peoples republic of korea': 'North Korea',

      'south africa': 'South Africa',
      'republic of south africa': 'South Africa',

      switzerland: 'Switzerland',

      taiwan: 'Taiwan',

      turkey: 'Turkey',
      'republic of turkey': 'Turkey',
      'republic of türkiye': 'Turkey',

      vietnam: 'Vietnam',
      'viet nam': 'Vietnam',

      malaysia: 'Malaysia',
    };
itstrueitstrueitsrealitsreal commented 1 month ago

Updated the mappings according to suggestions, marked for review.

nusoss-bot commented 1 month ago

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot commented 1 month ago

Folks, This PR seems to be stalling (no activities for the past 8 days). :snail: :cry: Hope someone can get it to move forward again soon...

nusoss-bot commented 1 month ago

Folks, This PR seems to be stalling (no activities for the past 7 days). :snail: :cry: Hope someone can get it to move forward again soon...