aboutsummaryrefslogtreecommitdiff
path: root/challenge-105
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-03-22 14:33:00 +0100
committerAbigail <abigail@abigail.be>2021-03-22 14:33:00 +0100
commit4b69b03001a46813096697188cc3369669a3b155 (patch)
tree900e0fe641677bbb242871414f4008000acb9515 /challenge-105
parent9dfb85bb7dcb42afa5a913c4eaaa058b5e8d4020 (diff)
downloadperlweeklychallenge-club-4b69b03001a46813096697188cc3369669a3b155.tar.gz
perlweeklychallenge-club-4b69b03001a46813096697188cc3369669a3b155.tar.bz2
perlweeklychallenge-club-4b69b03001a46813096697188cc3369669a3b155.zip
Games played by sound don't work as text.
It's impossible to play this game by text. So, the program will just die with a long message explaining why this is a really bad challenge, and why we don't even make an attempt to solve it.
Diffstat (limited to 'challenge-105')
-rw-r--r--challenge-105/abigail/perl/ch-2.pl49
1 files changed, 49 insertions, 0 deletions
diff --git a/challenge-105/abigail/perl/ch-2.pl b/challenge-105/abigail/perl/ch-2.pl
new file mode 100644
index 0000000000..f551468315
--- /dev/null
+++ b/challenge-105/abigail/perl/ch-2.pl
@@ -0,0 +1,49 @@
+#!/opt/perl/bin/perl
+
+use 5.032;
+
+use strict;
+use warnings;
+no warnings 'syntax';
+
+use experimental 'signatures';
+use experimental 'lexical_subs';
+
+die << "--";
+This challenge is impossible. This is a children's game, played
+with children who cannot read or write yet. The song is entirely
+based on *sounds*. It is about how a name is pronounded, not how
+it is written.
+
+How a name is pronounced depends on language, region, and parential
+preference.
+
+For instance, what is the consonant sound starting names like Thom
+(T?, Th?) or Christine (C?, Ch?, Chr?)? We cannot deduce that from
+how it's written.
+
+And what to do with names starting with a silent consonant? The
+Greek goddess of sand beaches, for instance, Psamathe.
+
+We might have a shot at solving this if the input were to be given
+in IPA phonetic notation, but the one example given doesn't indicate
+this is the intention.
+
+And we refuse to do something stupid as just blindly chopping off
+the leading consonant (if any) of a name. No pre-schooler would
+sing a different song for Tijs than they would for Thijs (names,
+which in my language are pronounced identically) -- and rightly so,
+because the game removes the leading consonant sound, which is not
+necessarily the leading consonant when written. Besides, what is
+the first consonant of \x{5b54}\x{592b}\x{5b50}?
+
+What to think about Victor? The name game has a special rule for
+names starting with a 'b', 'f' or 'm' sound. There are languages
+where the 'V' in Victor is very distinct from an 'f' sound -- and
+there are languages where they are the same sound. Again, really
+easy for pre-schoolers playing the game by sound; impossible to do
+by text.
+
+And then we haven't tackled the syllable count yet. Kyle. One or two
+syllables?
+--