Natural Language Understanding by Natural Language Programming
DOI:
https://doi.org/10.26821/IJSHRE.13.04.2025.130401Keywords:
Language, Natural, Programming, UnderstandingAbstract
The main purpose of this paper is to introduce an advanced programming technique "dynamically run" in Natural Language Programming. And I will show how this technique is used in natural language understanding. This technique not only greatly simplifies the source codes, but also reduces the machine code loading time complexity initially. Meanwhile, I design a parsing method that scans the sentence once and which uses additional list and stack possibly for the context free structure. To get the syntax and semantics of the sentence, each word is run as a function which is defined inside one file already. And the file of this function is loaded right before it is run dynamically. Lastly, to complete the understanding of natural language sentences, I introduce the concepts of knowledge representation and information flow.
References
Dynamically run Natural Language Programming in English, LAP LAMBERT Academic Publishing Book, Weihan Huang, 2022-08-30, Chapter 5 Advanced Programming, Section 8 Dynamically Run
Syntax
https://en.wikipedia.org/wiki/Syntax
Recursive function https://en.wikipedia.org/wiki/Recursion_(computer_science)
Chart parser https://en.wikipedia.org/wiki/Chart_parser
Attribute grammar
https://en.wikipedia.org/wiki/Attribute_grammar
Stack
https://en.wikipedia.org/wiki/Stack_(abstract_data_type)
Context free
https://en.wikipedia.org/wiki/Context-free_grammar
Semantics
https://en.wikipedia.org/wiki/Semantics
Directed graph