X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fmake-proper-names.lst;h=313a11f23cc60e96184e4839e42b658aa660635b;hb=41d32fd8eacbf02f09a5ca23f14c72adce5ebe52;hp=9deccf1165ad5b8a982a75b17ce795a23972625d;hpb=fcd1b19126a5a5f7312c0d789c832742623fa5bd;p=deb_pkgs%2Fscowl.git diff --git a/src/make-proper-names.lst b/src/make-proper-names.lst index 9deccf1..313a11f 100755 --- a/src/make-proper-names.lst +++ b/src/make-proper-names.lst @@ -1,20 +1,22 @@ #!/bin/sh +filter() { + sort -u \ + | comm -23 - working/known-upper.lst \ + | comm -23 - r/special/not-upper +} + cat working/all.lst | grep "^[A-Z]" \ | comm -23 - working/abbreviations.lst.pre \ | cat - l/proper-names/* \ + | filter \ | src/add-other-spellings \ | src/find-ss working/all.lst \ | sed "s/^\(.*\)'s\$/\1/" \ | src/filter \ - | sort | uniq \ - | comm -23 - working/known-upper.lst \ + | filter \ | sed "s/^\(.*\)/\1 \1's/" \ | tr ' ' '\n' \ - | sort | uniq \ + | sort -u \ > working/proper-names.lst - - - -