From 22ddd5cb92b71937e6e0248cd0252782d98b3dfc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 11 Aug 2004 17:10:20 +0000 Subject: [PATCH] has, a counterpart to be. --- src/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils.py b/src/utils.py index 4dd13a3cb..3d48f6d19 100755 --- a/src/utils.py +++ b/src/utils.py @@ -392,6 +392,13 @@ def be(i): else: return 'are' +def has(i): + """Returns the form of the verb 'to have' based on the number i.""" + if i == 1: + return 'has' + else: + return 'have' + def sortBy(f, L): """Uses the decorate-sort-undecorate pattern to sort L by function f.""" for (i, elt) in enumerate(L):