Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
1.62/5 (7 votes)
See more:
I'm working on a program that should find the names of classes in a text of requirement specifications(written in natural language), I found that nouns indicate the class name, but surely not all nouns are good classes, so I want to filter them out, and I want to know how???

I know this process is more effective when human do it, but I want to make the program results as good as human work.

thanks a lot
Posted
Comments
Sergey Alexandrovich Kryukov 27-Apr-15 14:24pm    
Not clear. The requirement does not look reasonable, as the structure of input content, rules or constraints, are unknown.
—SA
PIEBALDconsult 27-Apr-15 14:28pm    
It'll never work, unless whoever writes the spec has a way to indicate such things, maybe with XML.
Matt T Heffron 27-Apr-15 17:30pm    
+5 since the 1's didn't seem appropriate.
This isn't a poorly asked question, nor abusive.
Merely naïve.

1 solution

Even a super-sophisticated natural language analyzer will not do it...A class name is depend on the individual coding style of the developer wrote the code, and those class names can be anything from single noun to several nouns stacked together, shortened forms and mosaic words and on and on...
So even a human reader unfamiliar with programming languages and with the subject of the document at hand, will probably skip some class names without further information, not to say a computer program...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900