no offense intended, BrowserUK!)

None taken :)

My statement "no easy way" derives from several attempts that I have had at doing this. I've achieved a degree of success, but it is very easily thrown.

The problem with reducing your signature to a numerical value is that two identical pieces of text, except one has a spelling error in an otherwise insignificant word, promotes that word to the realms of a 'rare' word. When you now derive your numeric value, that typo can completely change the value derived and so, the two pieces of text no longer compare favourably.

My best attempt at working around that was to effectively spell check the document. That is to say, I only used words that appeared in my dictionary file when building my lists of N-rare words.

Whilst that removes typos of common words from being considered rare words, it also excludes many proper nouns and similar that would otherwise form very good components of a signature.

For example, people's names and place names often form a very strong correlative indicator for news stories, but if you only accept "correctly spelt words" as candidates, then you exclude many names that will likely not appear in your dictionary.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?

In reply to Re^4: Fingerprinting text documents for approximate comparison by BrowserUk
in thread Fingerprinting text documents for approximate comparison by Mur

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.