http://qs1969.pair.com?node_id=11133808


in reply to Re^2: How to count the vocabulary of an author?
in thread How to count the vocabulary of an author?

Well, I have a PhD in mathematical linguistics. Stemming was done in the first year ;-)

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)
by Bod (Parson) on Jun 14, 2021 at 12:01 UTC
    Well, I have a PhD in mathematical linguistics

    Wow! - Genuinely impressive.

    Can I ask your opinion on Hemingway Editor?
    I use it extensively in producing content for our business marketing, blogs, etc. But I have started writing something to perform a similar task but more tailored to our needs. For example, in marketing the ratio of first person to second person pronouns is (thought to be) important. My version makes extensive use of Lingua::EN::Fathom.

    My attempt is not very far developed and I'd love some informed input before I go much further.

      In fact, the idea is craftily clever. Their stemmer and parser can only stem and parse simple sentences, so if it can't process the sentence with a sufficiently high certainty, they flag it as too complex :-)

      I don't know what technology they use in the editor. Also, I quit academia almost ten years ago, so things might have moved a bit since I worked on similar stuff.

      But generally, English is one of the easier languages to process. Its morphology is simple (almost no declension, simple conjugation) and the training data for statistical methods are huge.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        I don't know what technology they use in the editor

        Javascript apparently...
        There is an explanation here