Skip to content

Add the definite article "the" to country names that require it for correct English grammar.

Notifications You must be signed in to change notification settings

dadeg/php-country-definite-article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adding Definite Article to Country Names

Build Status

This PHP package allows for adding the definite article ("the") to country names if required for proper English. Example: "United States" becomes "the United States." If it is a country that does not need the definite article added, it remains. Like so: "Japan" stays "Japan."

Installation

  composer require dadeg/php-country-definite-article

Getting Started

use CountryDefiniteArticle\CountryFormatter;
$countryWithDefiniteArticleAdded = CountryFormatter::format("United States"); // "the United States"

About

Add the definite article "the" to country names that require it for correct English grammar.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages