Metafor: Translating Natural Language to Code
vivin writes "Computer programming is second nature to most of the Slashdot crowd. However, this is not true for the vast majority of people. Formal programming languages are not as expressive or flexible as natural languages. This becomes more evident when we try to translate user requirements into actual code. Researchers at MIT have come up with a program that bridges this gap. It's not so much a tool that turns English into code, as it is a program that translates requirements (in English) to code. When Metafor analyzes English, nouns phrases become objects, verbs become functions, and adjectives become object attributes (or properties). In addition to helping programmers visualize their program better, I think it also promotes writing concise (and therefore) requirements and descriptions. Metafor doesn't handle run-on sentences (or bad English) that well." Update For for the dupe. Not going well. Appreciate all the hate mail. Really encourages improvement.
can it translate back into English?
Verbs translated to functions?? Nouns to variables??
int jerk_at_counter, hottie_in_accountancy, dork_at_it;
kill(boss);
send(intern,hell);
Yeah, that will work...
how long until
Now all we need is a tool that will take a user's brain and turn it into solid requirements.
It is quite simple
Haiku should not be funny
Try a Senryu
Forget it being a tool for this crowd then!
I'm about to write a program that stops dupes:
"Don't allow dupes."
There, now I have to decide whether it will be FOSS.
"Make it possible for programmers to write programs in English, and you will find that programmers can not write in English."
t er .html
http://www.murphys-laws.com/murphy/murphy-compu
Yeah, I know my neighbor with an IQ of 7 would rather be writing code that parses XML work orders and turns them into statistical graphs than watching NASCAR. It's just that complicated Java syntax kicks his ass so he's kicking back with a 6 pack of Black Label waiting for this technology to come out.
I'm Rick James with mod points biatch!
Computer programming is second nature to most of the Slashdot crowd.
Maybe back in 1998, but haughty sniping is second nature to most of the Slashdot crowd now.
Shiver Me Timbers and Poke Me Other Eye Out! How would it handle this!?
waiting...
waiting...
waiting...
Stupid computer doesn't do anything I tell it
Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
What truth?
There is no dupe
Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
Now that I've seen that, I suddenly have to wrestle with the fundamental insanity of having FOND MEMORIES about COBOL.
Why couldn't you have just left well enough alone, so I could keep happily despising it?
Next thing you know, I'll be pining away for OS/390 JCL.
Microsoft cheerleader, blue flag waving, you got a problem with that?
Anyone who had never even watched someone cook something for a few hours and just knows the names of the meals that taste best but doesn't even know the names of all ingredients or how they look raw should be denied access to a stove, yes.
Linux is not Windows
"I wish that people spoke mathematically rather than poor and ambiguous languages"
You fail it.
Is this perhaps an extreme example of building code from language, which is perhaps notoriously sloppy? I just gave my son an old copy of Code Complete so that he could learn to go from what he wants to do to code, all while developing documented code. He is in the introductory C++ programming class. He has a professor asking him to draw flow charts.
Update For for the dupe. Not going well. Appreciate all the hate mail. Really encourages improvement.
Ah, yes! Duping words next to each other, that is the new fad. Because duping articles is so yesterday's news
Open Source Java Web Forum with LDAP authentication
Well, nothing else seems to improve their editing style, grammar or general editing skills, so I really don't see why they don't expect hate mail.
It certainly would help if there was some transparency in their processes.
Plus you forgot to mark your eggs for garbage collection once you were done with them.
I like how he duped the word "for" in his comment: Update for for the dupe.
"No one likes working in a hamster wheel, and your shop smells of cedar shavings from here." - TaleSpinner
Update For for the dupe. Not going well. Appreciate all the hate mail. Really encourages improvement.
I fed this text into Metafor and it core dumped on me!
I'm afraid that your code infringes my patent #3254324 "Method of writing computer code using ASCII characters so that they can be displayed on an internet site"
I'm sorry, I've already patented that software. My army of lightly-armed attack lawyers will be there shortly.
Have Kylie stripped washed and brought to my tent
"It looks like you want to strip-wash Kylie. Now readying strip-washer, copper surfacer, and metal shearer. Thank you for using Metafor."
i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]