Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
An article in the Saturday edition of the NRC (one of the national newspapers in the Netherlands) made me aware of the work of Anna Wierzbicka and Natural Semantic Metalanguage. From the Wikipedia article:
The Natural Semantic Metalanguage is an approach to semantic analysis based on reductive paraphrase (that is, breaking concepts/words down into combinations of simpler concepts/words) using a small collection of semantic primes. The semantic primes (below) believed to be atomic, primitive meanings present in all human languages.

Currently the following 61 primitives are recognized (in alphabetical order):

ABOVE, AFTER, ALL, BAD, BECAUSE, BEFORE, BELOW, BIG, BODY, CAN, DIE, DO, FAR, FEEL, FOR SOME TIME, GOOD, HAPPEN, HAVE, HEAR, HERE, I, IF, INSIDE, KIND OF, KNOW, LIKE, LIVE, A LONG TIME, MANY/MUCH, MAYBE, MOMENT, MORE, MOVE, (LONG), NEAR, NOT, NOW, ONE, OTHER, PART OF, PEOPLE/PERSON, THE SAME, SAY, SEE, A SHORT TIME, SIDE, SMALL, SOME, SOMEONE, SOMETHING/THING, THERE IS, THINK, THIS, TOUCH, TRUE, TWO, VERY, WANT, WHEN/TIME, WHERE/PLACE, WORD, YOU

That it is possible to express complex concepts with NSM, was the description of the Dutch word "gezellig" that was mentioned in the article:

Everyone here can think like this: I am here now with some other people. These people are all doing some things at the same time because they want to feel something good. They don't want to anyone here to feel something bad. They all feel something good. I want to be here with these people.

In the past I have been frequently asked to translate the word "gezellig", but never have been able to do so with all the nuances involved. I think this definition is very good.

Anyway, after reading the article I could not help but wonder how you would express Perl with these primitives, especially compared to other programming languages. And thereby conclusively proof that Perl is a better programming language ;-)

Liz

Update:
Someone pointed out to me that in my example about the Dutch word "gezellig", the word "everyone" is not a primitive. That is correct: you don't need to use only primitives in a description. You may also use compounds, as long as these compounds consist of other compounds or primitives. Just as your program consists of subroutine calls, possibly within subroutine calls. In the end, they're all Perl statements.

Getting back to "everyone", that of course is a compound, described by "all people".


In reply to [probably OT] Perl in Natural Semantic Metalanguage by liz

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (6)
    As of 2014-11-24 01:35 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My preferred Perl binaries come from:














      Results (135 votes), past polls