Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: [probably OT] Perl in Natural Semantic Metalanguage

by simonm (Vicar)
on Sep 22, 2003 at 16:27 UTC ( #293181=note: print w/replies, xml ) Need Help??

in reply to [probably OT] Perl in Natural Semantic Metalanguage

Personally, I'm waiting for Toki::Pona::Perl...

With 119 words and no conjugations, declensions or other word modifiers, at least you know that the tokenizer wouldn't be difficult to construct...

  • Comment on Re: [probably OT] Perl in Natural Semantic Metalanguage

Replies are listed 'Best First'.
Re: Re: [probably OT] Perl in Natural Semantic Metalanguage
by simonm (Vicar) on Sep 22, 2003 at 20:33 UTC
    After poking around a bit more, it looks like the 61 primitives in NSM correspond to 41 words in Toki Pona; some of the overlap comes from merging ideas such as "like" and "want", but the biggest change is use of compound phrases for things like places and times -- using "small time" for "brief" and "near me" for "here".
    ala - NOT ali - ALL anpa - BELOW ante - OTHER ijo - SOMETHING/THING ike - BAD insa - INSIDE jan - PEOPLE/PERSON; SOMEONE (jan wan) jo - HAVE kama - HAPPEN; AFTER (kama la) ken - CAN; MAYBE; IF (ken la) kute - HEAR lili - SMALL, SOME lon - THERE IS, TRUE luka - PART OF lukin - SEE ma - WHERE/PLACE (or tomo for indoor places) mi - I moli - DIE mute - MANY/MUCH, MORE, VERY ni - THIS nimi - WORD pali - DO, LIVE pilin - FEEL, THINK pini - BEFORE poka - NEAR; SIDE; TOUCH; HERE (poka mi); FAR (poka mi ala) pona - GOOD sama - THE SAME, KIND OF sewi - ABOVE sijelo - BODY sina - YOU sona - KNOW suli - BIG; LONG tan - BECAUSE tawa - MOVE tenpo - WHEN/TIME; A LONG TIME (tenpo suli); FOR SOME TIME (tenpo wa +n); MOMENT (tenpo lili ni); NOW (tenpo ni); A SHORT TIME (tenpo +lili) toki - SAY tu - TWO wan - ONE wile - LIKE; WANT

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://293181]
[ambrus]: Corion: as for that, I talked with schmorp, and looked a bit more at Prima
[ambrus]: Corion: from the docs, it definitely looks like it would be possible to write an AnyEvent driver for it using Prima::File and Prima::Timer.
[ambrus]: (I haven't found an idle event.)
[ambrus]: However, I also looked at the internals, and found two interesting things:
[marto]: stupid xpath question, I have a xpath copied from the browser, is the * wildcard supposed to work for IDs? e.g. '//*[@id="*"]/ div/div/header/p/a '?
[ambrus]: The main loop for unixish systems is in https://metacpan. org/source/ KARASIK/Prima-1. 49/unix/apc_app.c. It is a hand-rolled select loop, but also always spins at least once every 0.2 seconds for some reason.
[ambrus]: marto: no, not that way. if you just want to test for an existing id attribute, then write *[@id] , or you can match a regexp to the value of that attribute like *[@id=~/something/ ]
[marto]: ambrus, thanks I ended up going with '//*[starts- with(@id, "thread_")]...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2016-12-08 10:50 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (140 votes). Check out past polls.