I can't help but think that Perl also appeals to linguists because Larry Wall consciously incorporated
elements of human languages into Perl itself:...
While I cannot give any proof that your opionion is FALSE, I
do not think you are right in this case. If the incorporation of elements
of human languages appeals to some group, it will should rather appeal
to the set of
humans in general, than to its subset of
linguists.
Considering the extensive use of the
zero pronoun (
$_),
Perl could be viewed as more appealing to native speakers of Japanese than to Anglosaxons. No,
I don't believe this, but if someone has empirical data about it, I may
chance my mind.
A more functional approach would be to ask what Perl gives to Linguists to
make there job easier. Since you can easily built
regular grammars
(Chomsky Hierarchy Type 3 Grammars) with the regular part of Perl's
unregular
expressions Perl is a good tool to implement Type 3 grammars and/or test
some theories. If you look further into Natural Language Processing you
will see that finite state technologies are wildly applied and
got some popularity in the field. Implementing finite state
automata (
m//) and finite state transducter (
s///) in
Perl is pretty easy. While you may port some really huge automata to
C or
whatever for efficiency Perl should be good enough for experimenting and building
smaller automata. So for some kind of theroretical linguistics Perl
is a easy to use tool, and therfore popular (at least among students). While you can built
context-free Grammars (Chomsky Type 2)
with Perl or Perl parser modules, a linguist needing this kind of grammar may
leave Perl and look for some other programming language. Probably Perl
isn't that popular in the field of
Semantics as well. Here Prolog
seems to rule.
As we know Perl is a pretty good language for text processing/ matching. Aka
a good
helper programming language for corpus linguistics, statistical
NLP, data preparation, etc. pp.
Hanamaki
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.