diff options
Diffstat (limited to 'Tools/world')
-rwxr-xr-x | Tools/world/world | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/world/world b/Tools/world/world index 4fb95f3..6d85154 100755 --- a/Tools/world/world +++ b/Tools/world/world @@ -110,7 +110,11 @@ def resolve(rawaddr): return rawaddr addr = parts[-1] if nameorgs.has_key(addr): - print rawaddr, 'is from a', nameorgs[addr], 'organization' + if string.lower(nameorgs[addr][0]) in 'aeiou': + ana = 'an' + else: + ana = 'a' + print rawaddr, 'is from', ana, nameorgs[addr], 'organization' return None elif countries.has_key(addr): print rawaddr, 'originated from', countries[addr] |