Reputation
323
Top tag
Next privilege 350 Rep.
Access review queues
Badges
1 7
Impact
~1k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
Aug
6
comment Are commas used less in French?
Ah, I see what you mean. I used the tr -s option, which, along with -c to get all non-comma characters, would substitute "runs" of non-comma characters with a single newline. But per your suggestion, I ran the correct $ tr -dc ',' < english.txt | wc -c and got 440 for English, 383 for French (one fewer, because of the single newline at the top I didn't see). Thanks, I will update the off-by-one counts.
Aug
6
comment Are commas used less in French?
Good question. wc doesn't count newlines as words, and gives a separate newline count (wc -l). Python's udhr.words() also uses tokenized words (sans newlines). So the original texts' newlines won't change the result.
Aug
6
comment Différence de registre et position de l'adverbe
Oui, les phrases n'appartient au registre familier mais je n'ai pas pu créer la bonne étiquette (la simple catégorie «registre») à cause de ma réputation faible.