-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
import cartesianProduct from 'just-cartesian-product'; | ||
export const preferredSaultSteMarieSpelling = 'Sault Ste. Marie'; | ||
export const canadaPostSaultSteMarieSpelling = 'S-STE-MARIE'; | ||
const saultSpellings = [ | ||
'ault', | ||
'dault', | ||
's', | ||
'salt', | ||
'salut', | ||
'sault', | ||
'saulte', | ||
'soo', | ||
'sult' | ||
]; | ||
const steSpellings = ['s', 'st', 'ste', 'saint', 'sainte']; | ||
const marieSpellings = ['m', 'mare', 'marei', 'maire', 'marie', 'mary']; | ||
const wordSpellings = { | ||
sault: [ | ||
'ault', | ||
'dault', | ||
's', | ||
'salt', | ||
'salut', | ||
'sault', | ||
'saulte', | ||
'soo', | ||
'sult' | ||
], | ||
ste: ['s', 'st', 'ste', 'saint', 'sainte'], | ||
marie: ['m', 'mare', 'marei', 'maire', 'marie', 'mary'] | ||
}; | ||
const lowerCaseSaultSteMarieSpellingsList = cartesianProduct([ | ||
saultSpellings, | ||
steSpellings, | ||
marieSpellings | ||
wordSpellings.sault, | ||
wordSpellings.ste, | ||
wordSpellings.marie | ||
]).map((combination) => { | ||
return combination.join(' '); | ||
}); | ||
lowerCaseSaultSteMarieSpellingsList.push('sault stemarie', 'saultstemarie', 'ssm', 'ssmarie'); | ||
lowerCaseSaultSteMarieSpellingsList.push('the sault', 'the soo', 'sault stemarie', 'saultstemarie', 'ssm', 'ssmarie'); | ||
export const lowerCaseSaultSteMarieSpellings = new Set(lowerCaseSaultSteMarieSpellingsList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters