mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typo [thanks GG]
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ body{counter-reset:h1 6}
|
||||
</ul>
|
||||
<p>(I know, there are a lot of exceptions. <i>Man</i> becomes <i>men</i> and <i>woman</i> becomes <i>women</i>, but <i>human</i> becomes <i>humans</i>. <i>Mouse</i> becomes <i>mice</i> and <i>louse</i> becomes <i>lice</i>, but <i>house</i> becomes <i>houses</i>. <i>Knife</i> becomes <i>knives</i> and <i>wife</i> becomes <i>wives</i>, but <i>lowlife</i> becomes <i>lowlifes</i>. And don’t even get me started on words that are their own plural, like <i>sheep</i>, <i>deer</i>, and <i>haiku</i>.)
|
||||
<p>Other languages, of course, are completely different.
|
||||
<p>Let’s design a Python library that automatically pluralizes English nouns. We’ll start just these four rules, but keep in mind that you’ll inevitably need to add more.
|
||||
<p>Let’s design a Python library that automatically pluralizes English nouns. We’ll start with just these four rules, but keep in mind that you’ll inevitably need to add more.
|
||||
<p class=a>⁂
|
||||
|
||||
<h2 id=i-know>I Know, Let’s Use Regular Expressions!</h2>
|
||||
|
||||
Reference in New Issue
Block a user