I've been working on a project involving linguistics and programming for school, attempting to write functions (or perhaps subroutines now) capable of returning poetic devices, but I've been implementing the project in PHP. There is very little that the user must input to the program, so the GUI of the browser is not at all important.
What's most important is the efficiency of database queries. The program uses IPhOD, a phonotactic database that gives information about syllables and sound, which I use to return lists of rhymes, and I plan to use WordNet and VerbNet extensively. I've already edited a table of word morphology exceptions in WordNet, adding the type of inflection to the database, so that my morphology function functions. I've also read a lot about OpenCyc, but I've had no success with using it. In my imagination OpenCyc could be used to return fundamental information about WordNet synsets that the program could take to build intelligent metaphors, and from what I've read it's possible.
If anyone has experience in linguistics, it's likely that they've heard of systemic grammar. My plan at first was to generate poems on which an adaptation of the Turing test could be run, but now I'm very worried that the project is too big (hints the new goal: functions as poetic devices). I wanted to incorporate systemic functional grammar into my program to generate phrase structure, the backbone of the lines.
The reason I'm giving this background information is that I'm seriously thinking about reimplementing the program in Perl. I'm very new to Perl, but the code is visually very similar to PHP, and so the switch would be easy. What benefits might I gain from such a reimplementation? What modules might offer help? And if anyone has any experience in incorporating OpenCyc into Perl that would be more than wonderful, or rather if anyone has experience with programming any of this linguistics stuff, I'd really appreciate the info, because my adviser has no clue what I'm doing.
Thanks for any help you can give
-Justin
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.