[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Spelling error with no single correct



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hey

For those of you who have not seen it, there was filed a bug against
Lintian in Ubuntu requesting Lintian to catch the misspelling "allows
to"[1].

Unfortunately, there do not seem to be an "always correct"
replacement[2].  I have attached a patch that uses [correction is
context dependent] as correction (it intentionally do not pass the
spelling-multiword, so you can see the output by running that test).
The question is... can we do better than this?

~Niels

[1] https://bugs.launchpad.net/bugs/608231

[2] https://bugs.launchpad.net/ubuntu/+source/lintian/+bug/608231/comments/2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJNJaj/AAoJEAVLu599gGRCJnwP+QHj5jCXClFov+J0aLBIBVhz
ikjz8Ui1qoofkTUpNUL7HP51YoMjjlpmVuEc9AkJAhQwO9KIwJVdn79SW4avQ9n0
KjUhwnePwL60hOZXXdAXDhkHlgrfdWT4+jWq3+fx+OwQF8SwdTk7TCCR6sTdqqtK
RavP2Ti6juGO6XEn38aH3FcJtKpgxP+A3RHimRU40Yh7A8Oc1L05OMKoUsoqHrH0
7Eg+Vu6hCiJe0ZW14WvVPqKxKDevGCiOMkPmyqPIKnVIKw3AmWeY9LsmXkziX+CW
RJ1MUMPjH3vmlG7MrYL3GURH4FR/3b+3pWg2ClR8i3/b4qdHr0N9gJWNomKaAv7K
lY7Q/TDWoGAbDzUg1XPC4nsBivSNJLCgHc0s6tdv7Ja7HvSy3ybc3UbTCfRVO21G
FA0DN25hReAE9SP+E100sUZQ5Jh1Zt9xGUxSFjQpoXeO36+PYS06JuZWSJzMta+S
z2hP3RuEb8/bkz4BElMOlclgMaQP+VIS9RDY8fSmU5dxlLZGlweusE3QBxntXIAZ
47/MDR8etbVdI+6i39I5Z8VKeV0grCi0Q/pRFkHtGAlzeX1zBHWoiQC74HWdc6SU
JVWJbM1yNRzKLwZkWD9cCZk9L6BVj6N7epXxXI6CosH3jW9Zn23Zsjnrqdwj+//W
z2w5MpkUIyXluOegBKYI
=Qe5i
-----END PGP SIGNATURE-----
>From cb92c43c54450122fde5be0990f0debd4c6e021c Mon Sep 17 00:00:00 2001
From: Niels Thykier <niels@thykier.net>
Date: Thu, 6 Jan 2011 12:29:13 +0100
Subject: [PATCH] Catch "allows to" as a spelling error. LP: 608231

---
 data/spelling/corrections-multiword                |    1 +
 .../spelling-multiword/debian/debian/control.in    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/data/spelling/corrections-multiword b/data/spelling/corrections-multiword
index 71a066e..521ab0a 100644
--- a/data/spelling/corrections-multiword
+++ b/data/spelling/corrections-multiword
@@ -9,3 +9,4 @@
 (?i)debian/gnu linux||Debian GNU/Linux
 (?i)these package||this package
 (?i)this packages||these packages
+(?i)allows to||[correction is context dependent]
diff --git a/t/tests/spelling-multiword/debian/debian/control.in b/t/tests/spelling-multiword/debian/debian/control.in
index fa441cc..17a0c99 100644
--- a/t/tests/spelling-multiword/debian/debian/control.in
+++ b/t/tests/spelling-multiword/debian/debian/control.in
@@ -18,6 +18,7 @@ Description: {$description}
    * Debian/GNU Linux
    * An other error
    * This packages
+   * allows to
  .
  Not errors:
    * These packages
-- 
1.7.2.3

Attachment: 0001-Catch-allows-to-as-a-spelling-error.-LP-608231.patch.sig
Description: Binary data


Reply to: