Slashdot Mirror


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.

12 of 475 comments (clear)

  1. I can imagine... by JamesP · · Score: 4, Funny

    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 /. fixes commenting on Chrome?
  2. Great! by Eusebo · · Score: 5, Funny

    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
  3. of little value here! by hugesmile · · Score: 4, Funny
    Metafor doesn't handle run-on sentences (or bad English) that well."

    Forget it being a tool for this crowd then!

  4. Re:Dupe by Anonymous Coward · · Score: 5, Funny

    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.

  5. It is coming to pass... by HaeMaker · · Score: 4, Funny

    "Make it possible for programmers to write programs in English, and you will find that programmers can not write in English."

    http://www.murphys-laws.com/murphy/murphy-comput er .html

  6. Because the average joe wants to be a programmer? by Proc6 · · Score: 5, Funny

    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!

  7. you must be new here by avi33 · · Score: 5, Funny

    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.

  8. Have Kylie stripped washed and brought to my tent by Timesprout · · Score: 4, Funny

    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
  9. I don't think so by gowen · · Score: 4, Funny
    Computer programming is second nature to most of the Slashdot crowd
    Spoken like a man who's never looked at SlashCode.
    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  10. Re:Ebonics? by Gzip+Christ · · Score: 5, Funny
    Hey brudda, how long beefo it be talkin ebonics yo?
    There is already a programming language for programming in Ebonics. Be sure to check out some of the sample programs - they are true masterpieces.
  11. Update by Espectr0 · · Score: 5, Funny

    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

  12. Re:Dupe by phasm42 · · Score: 4, Funny

    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