[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-424686-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-424686-en":131,"doc-similar-424686":164},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","programming-chapter-3-natural-languages-and-programming-languages","Programming - Chapter 3 - Natural Languages and Programming Languages","","Programming is introduced as the practice of writing instructions that make computers perform useful tasks, combining creativity with engineering and science. The chapter contrasts natural human languages with programming languages, explaining why natural language is unsuitable for computer communication. It surveys core obstacles: complexity, ambiguity, and irregularity, showing how context-dependent meanings and evolving grammar can create unreliable, error-prone instructions for machines.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/programming-chapter-3-natural-languages-and-programming-languages/424686/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/programming-chapter-3-natural-languages-and-programming-languages/424686.png","ImageObject",300,407,{"name":42,"@type":43},"Anna Hans","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-09-28",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",15,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why are natural languages not suitable for programming computers?","Question",{"text":63,"@type":64},"Natural languages are often too complex for precise instruction and are prone to ambiguity and irregularity, which makes their meanings unreliable for computers.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the role of ambiguity in natural-language programming problems?",{"text":68,"@type":64},"Words and sentences can have multiple meanings depending on context, so a computer cannot consistently interpret intended instructions without exact definitions.",{"name":70,"@type":61,"acceptedAnswer":71},"What are the main issues discussed with natural languages?",{"text":72,"@type":64},"The chapter highlights complexity, ambiguity, and irregularity as the key reasons natural languages do not work well for human-computer or computer-computer communication.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},424686,1790824196,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":33,"preview_urls":147},5909892332657,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","3  \nProgramming  \nThe Analytical Engine has no pretensions whatever to originate any thing. It can do whatever we know how to order it to perform. It can follow analysis; but it has no power of anticipating any analytical relations or truths. Its province is to assist us in making available what we are already acquainted with.  \nAugusta Ada Countess of Lovelace, in Notes on the Analytical Engine, 1843  \nWhat distinguishes a computer from other machines is its programmability. Without a program, a computer is an overpriced door stopper. With the right program, though, a computer can be a tool for communicating across the continent, discovering a new molecule that can cure cancer, composing a symphony, or managing the logistics of a retail empire.  \nProgramming is the act of writing instructions that make the computer do something useful. It is an intensely creative activity, involving aspects of art, engineering, and science. Good programs are written to be executed efﬁciently by computers, but also to be read and understood by humans. The best programs are delightful in ways similar to the best architecture, elegant in both form and function.  \nThe ideal programmer would have the vision of Isaac Newton, the intellect of Albert Einstein, the creativity of Miles Davis, the aesthetic sense of Maya Lin, the wisdom of Benjamin Franklin, the literary talent of William Shakespeare, the oratorical skills of Martin Luther King, the audacity of John Roebling, and the self-conﬁdence of Grace Hopper.  \nFortunately, it is not necessary to possess all of those rare qualities to be a good programmer! Indeed, anyone who is able to master the intellectual challenge of learning a language (which, presumably, anyone who has gotten this far has done at least for English) can become a good programmer. Since programming is a new way of thinking, many people ﬁnd it challenging and even frustrating at ﬁrst. Because the computer does exactly what it is told, a small mistake in a program may prevent it from working as intended. With a bit of patience and persistence, however, the tedious parts of programming become easier, and you will be able to focus your energies on the fun and creative problem solving parts.  \nIn the previous chapter, we explored the components of language and mechanisms for deﬁning languages. In this chapter, we explain why natural languages are not a satisfactory way for deﬁning procedures and introduce a language for programming computers and how it can be used to deﬁne procedures.  \nGolden Gate Bridge  \n3.1 Problems with Natural Languages  \nNatural languages, such as English, work adequately (most, but certainly not all, of the time) for human-human communication, but are not well-suited for human-computer or computer-computer communication. Why can't we use natural languages to program computers?  \nNext, we survey several of the reasons for this. We use speciﬁcs from English, although all natural languages suffer from these problems to varying degrees.  \nComplexity. Although English may seem simple to you now, it took many years of intense effort (most of it subconscious) for you to learn it. Despite using it formost of their waking hours for many years, native English speakers know a small fraction of the entire language. The Oxford English Dictionary contains 615,000 words, of which a typical native English speaker knows about 40,000 .  \nAmbiguity. Not only do natural languages have huge numbers of words, most words have many different meanings. Understanding the intended meaning of an utterance requires knowing the context, and sometimes pure guesswork. For example, what does it mean tobe paid biweekly? According to the American Heritage Dictionary1 , biweekly has two deﬁnitions:  \n1. Happening every two weeks.  \n2. Happening twice a week; semiweekly.  \nMerriam-Webster's Dictionary2 takes the opposite approach:  \n1. occurring twice a week  \n2. occurring every two weeks : fortnightly  \nSo, depending on which deﬁnition is int","cbCaiqfvqRQqBnIJ","https://ap.wps.com/l/cbCaiqfvqRQqBnIJ","pdf",476269,18,"English","# 3 Programming\n## 3.1 Problems with Natural Languages","[{\"question\":\"Why are natural languages not suitable for programming computers?\",\"answer\":\"Natural languages are often too complex for precise instruction and are prone to ambiguity and irregularity, which makes their meanings unreliable for computers.\"},{\"question\":\"What is the role of ambiguity in natural-language programming problems?\",\"answer\":\"Words and sentences can have multiple meanings depending on context, so a computer cannot consistently interpret intended instructions without exact definitions.\"},{\"question\":\"What are the main issues discussed with natural languages?\",\"answer\":\"The chapter highlights complexity, ambiguity, and irregularity as the key reasons natural languages do not work well for human-computer or computer-computer communication.\"}]","Programming - Chapter 3 - Natural Languages and Programming Languages | PDF",1790635065,45,[148,152,156,160],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/49a831d58ffcddb99f54f3d6073c64dd.webp",983,1280,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d2cc854909bc9cec7bd6f0db38056674.webp",982,1278,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/18ffd32455ba268a2de46f11dfe087f3.webp",981,1277,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5028440b870baa739f1bef4ff2cb9502.webp",980,1276,{"list":165,"token":11},[166,172,179,186,193,199,205,211,217,223],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":33,"category_name":29,"create_tm":171},685653,"Introduction to Programming Languages and Tools of the Trade - Lesson Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999685614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=ELcnQHrJ%2BEy7Ue6bmw9Qnetu%2FM0%3D","introduction-to-programming-languages-and-tools-of-the-trade-lesson-overview",1794016330,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},5131,"Eyewitness Computer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696182287/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=T9AbqMVMo1KYR%2BLinw3%2B0yUD3Pg%3D","eyewitness-computer",52,1776309326,{"doc_id":180,"doc_title":181,"file_type":138,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},347395,"Programming In C - Part 1 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911021193/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=yJz7P6RqYG0DgV%2F2fPmcF7%2By2vM%3D","programming-in-c-part-1-introduction",31,1790066769,{"doc_id":187,"doc_title":188,"file_type":138,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":29,"create_tm":192},5128,"Coding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696343468/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=GyGyUI7Y20ZAtwCDYwC%2B8Hmdv6c%3D","coding",59,1776309249,{"doc_id":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":97,"category_name":29,"create_tm":198},685639,"Programming Languages and Applications - Course Topic - May 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999084333/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=mXyiQ%2B%2FeulDd8L6VgnmmPZI36v4%3D","programming-languages-and-applications-course-topic-may-2022",1794016118,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":116,"category_name":29,"create_tm":204},446272,"ProgmCreate your own set of computer sequences to make things happen","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924376932/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=6NQfRWCU%2FEdrW6HtIZux47pBQMw%3D","progmcreate-your-own-set-of-computer-sequences-to-make-things-happen",1790714683,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":102,"category_name":29,"create_tm":210},646531,"MP3000 Series Motion Control - USER’S MANUAL - SVC/SVC32/SVC64, SVR/SVR32","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971937971/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=hJUbzhDIIvj8YUjnTypmKEAvbZM%3D","mp3000-series-motion-control-users-manual-svcsvc32svc64-svrsvr32",1792763494,{"doc_id":212,"doc_title":213,"file_type":138,"home_preview_img_url":214,"slug":215,"view_count":33,"category_name":29,"create_tm":216},684822,"CODING CUPS - GRADE LEVELS - Mission - Coding CUPS Activity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000067231/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=goCfMmjnFmpwYjCS%2BtYu%2BkIGm7w%3D","coding-cups-grade-levels-mission-coding-cups-activity",1794006618,{"doc_id":218,"doc_title":219,"file_type":138,"home_preview_img_url":220,"slug":221,"view_count":116,"category_name":29,"create_tm":222},326688,"Functional Programming - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909071089/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=URy4O59RWR1Ypw6rBANnMujNSuU%3D","functional-programming-read-online-free",1789975086,{"doc_id":224,"doc_title":225,"file_type":138,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":29,"create_tm":229},417793,"Python Programming Basics - Overview of Interpreters, Translation, and Key Vocabulary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229921866711/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796113859&Signature=6rrsQsW9w6O4GemE8UVGZYwKrpg%3D","python-programming-basics-overview-of-interpreters-translation-and-key-vocabulary",13,1790610644]