You are to write a very small program within 100 characters. Your program must distinguish between masculine and feminine french nouns. The output should be un
if it is masculine and une
if it is feminine. Often, there are certain statistical rules you can follow (e.g. if it ends in an "e" it is more likely feminine than masculine).
Input:
A french word; it may consist of any lowercase letters and dashes, including lowercase letters with accents.
Example input: ami
Output:
un
if the word is masculine and une
if the word is feminine.
Example output: un
You do not have to get every word right; your goal is to be as accurate as possible.
Scoring: Your answer must be within 100 characters. Statements such as print
or console.log
or alert
do not count as part of your total bytes. You may also write a function or method that performs this task, in which case the first few bytes (e.g. f=x=>
) which are part of the function declaration do not count to your total. Your total score is the number of incorrect answers. Ties are broken by code size.
Nouns to test with:
un ami
un café
un chapeau
un concert
un crayon
un garage
un garçon
un lit
un livre
un mari
un musée
un oncle
un ordinateur
un pantalon
un piano
un pique-nique
un portable
un père
un sandwich
un saxophone
un stade
un stylo
un théâtre
un téléphone
un voisin
une botte
une boum
une chaise
une chaussette
une chemise
une clarinette
une copine
une femme
une fille
une glace
une heure
une lampe
une maison
une montagne
une personne
une piscine
une pizza
une radio
une raquette
une salade
une souris
une sœur
une table
une télé
une voiture