Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)

by choroba (Archbishop)
on Jun 14, 2021 at 13:42 UTC ( #11133847=note: print w/replies, xml ) Need Help??


in reply to OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)
in thread How to count the vocabulary of an author?

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]
  • Comment on Re: OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)
  • Download Code

Replies are listed 'Best First'.
Re^2: OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)
by LanX (Cardinal) on Jun 14, 2021 at 15:20 UTC
      Ever tried saying it to an average English speaker?

      The lack of grammar keeps related phrases closer to each other which helps parsing a lot.

      For free word order languages, grammar seems to help, but due to homonymy (or homography) you usually don't have a solid foundation to base the grammar on.

      The most advanced system nowadays are based on Machine Learning, so there's no grammar involved at all, you just need large training data.

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

        I've noticed that, when a google-translate translation (EN->NL is most conspicuous to me) is ridiculously wrong, it's often fixed a few months later. I think (or at least hope) that the reason is that more data has been processed, i.e., more 'training data', or at the very least - better numbers/statistic decisions.

        > Ever tried saying it to an average English speaker?

        Sure, that's how I normally greet my friend John from Buffalo! ;-)

        > The lack of grammar keeps related phrases closer to each other which helps parsing a lot.

        It ain't necessarily so, try deciphering the headlines of newspapers like the Guardian ...

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

        ) actually he is from Hamburg NY, but that's too confusing for the locals here ...

Re^2: OT - Hemingway Editor (was: Re^4: How to count the vocabulary of an author?)
by Bod (Deacon) on Jun 14, 2021 at 23:39 UTC
    I don't know what technology they use in the editor

    Javascript apparently...
    There is an explanation here

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-07-26 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?