United-Bissau, United States-Bissau, United States of-Bissau United States of America, United States of America Trinidad States of America, Trinidad of America, Trinidad America, Trinidad and States of America, Trinidad and of America, Trinidad and America Trinidad and Tobago, United States of America United and Tobago, United States and Tobago, United States of and Tobago, United Tobago, United States Tobago, United States of Tobago United States of America, Trinidad and Tobago Polgeria, Poria, Poa, Polalgeria, Polaria, PolaaĪland, And, Algeland, Algend, Algeriland, Algerind Standard loopholes, as usual, are prohibitedĮxamples with all valid answers for a specific pair: Poland, Algeria.Vowels are a, e, i, o, u, A, E, I, O, U.There are no countries in the list that contain both spaces and dashes.Côte d'Ivoire counts as two words: Côte and d'Ivoire.United States of America and United Kingdom can result in United Kingdom It is okay if the result is the same as one of the input countries, e.g.Your submission should work for at least the countries as shown in this list.Example: Hungary and Hungary will return Hungary 2.Example: United States of America and United States of America will return United States of America 2.Special case 2: If you enter the same country twice, you have to return 2.Example: Spain and Timor-Leste is Spain-Leste.Example: United States of America and Guinea-Bissau can be United States of-Bissau among others.If you split the name at the dash you have to use a dash in the output instead of a space Special case 1: countries containing dashes counts multi-word ones.Example: United States of America and Trinidad and Tobago can be United and Tobago, United States and Tobago, United States of and Tobago, United Tobago, United States Tobago, or United States of Tobago. If both names are multi-word ones then you have to split both of them at one of the word boundaries and then join them together afterwards.Example: France and United States of America is France States of America.Example: United States of America and France is United States of France.If one of the country names are multiple words while the other is a single one, then you have to replace either the first word of the multi-word one, or the last word with the other dependent on whether the multi-word country name is the first or second.Example output: Mixing Poland and Algeria can be either of the following: Polgeria, Poria, Poa, Polalgeria, Polaria or Polaa.However Algeria/ is not valid, as the second half doesn't contain any letters. Example: Algeria can be split by A/lgeria, Alge/ria, or Algeri/a.Example: Poland can be split by either Po/land or Pola/nd.The second half doesn't need to contain vowels however. The first half will always contain the vowel it was split by. After the split both parts should contain at least one letter.Vowels are a, e, i, o, u, or their uppercase variants.If both names are single words you have to split each country name after a vowel randomly, then use the first half from the first country and the second half of the second country.The output is a single country name that is a mixture of the two inputs based on the following rules: Examples: United States of America, Portugal, Côte d'Ivoire, Guinea-Bissau. They are usually capitalised with the exception of prepositions and similar words. Country names contain upper or lowercase letters of the English alphabet, spaces or dashes, and there's a special case of Côte d'Ivoire. The input is two country names in English as shown in this page.Your task is to replicate what the bot does by writing a script or a function based on the following criteria: Flags Mashup Bot is a small Twitter bot that generates a new country name based on two random country names and tweets the result every couple of minutes.
0 Comments
Leave a Reply. |