Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taxonomy: plural antioxidantes portuguese #8980

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

moon-rabbitOFF
Copy link
Contributor

What

Screenshot

Related issue(s) and discussion

  • Fixes #[ISSUE NUMBER]

@github-actions github-actions bot added the 🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies label Sep 10, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov-commenter
Copy link

Codecov Report

Merging #8980 (78f084b) into main (c298ab3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #8980   +/-   ##
=======================================
  Coverage   46.07%   46.07%           
=======================================
  Files          64       64           
  Lines       19824    19824           
  Branches     4798     4798           
=======================================
  Hits         9133     9133           
  Misses       9512     9512           
  Partials     1179     1179           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@stephanegigandet stephanegigandet changed the title plural antioxidantes portuguese taxonomy: plural antioxidantes portuguese Sep 11, 2023
@stephanegigandet
Copy link
Contributor

We probably should add support for plurals in Portuguese (and other languages) in fact, currently we only have very basic support for fr/en/es:

sub remove_plurals ($lc, $tagid) {

	if ($lc eq 'en') {
		$tagid =~ s/s$//;
		$tagid =~ s/(s)-/-/g;
	}
	if ($lc eq 'fr') {
		$tagid =~ s/(s|x)$//;
		$tagid =~ s/(s|x)-/-/g;
	}
	if ($lc eq 'es') {
		$tagid =~ s/s$//;
		$tagid =~ s/(s)-/-/g;
	}

	return $tagid;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧬 Taxonomies https://wiki.openfoodfacts.org/Global_taxonomies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants