[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-424690-105":59,"doc-detail-424690-en":130,"doc-similar-424690":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","the-language-of-programming-on-the-vocabulary-of-names","The Language of Programming - On the Vocabulary of Names","","Programming language corpora contain more than keywords: the dominant textual elements are names of variables, data structures, and functions that developers assign and that other developers must interpret. This work compares program-name vocabulary with natural-language word usage. It analyzes open-source Java projects and finds name distributions that align with Zipf-like frequency skew and shorter popular names, while name-length patterns differ due to single-letter prevalence and long compound names. The results motivate modeling programs at the level of individual words rather than source tokens.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/the-language-of-programming-on-the-vocabulary-of-names/424690/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/the-language-of-programming-on-the-vocabulary-of-names/424690.png","ImageObject",300,407,{"name":92,"@type":93},"Guten tag","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-09-28",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What role do variable and function names play in programming?","Question",{"text":112,"@type":113},"Names give programs meaning by anchoring them in the problem domain and identifying the elements and operations they perform.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What relationship between name frequency and rank does the paper investigate?",{"text":117,"@type":113},"It tests whether programming-name frequencies follow Zipf’s law, where the rth ranked item appears with frequency inversely proportional to r.",{"name":119,"@type":110,"acceptedAnswer":120},"How do program name lengths differ from natural-language word lengths?",{"text":121,"@type":113},"Program names show a mode at length 1, a heavier tail with very long names, and differ because names are often formed by concatenating multiple words.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},424690,1791064001,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},687212321768,"https://ap-avatar.wpscdn.com/avatar/a0010bdbe886d2fe77?x-image-process=image/resize,m_fixed,w_180,h_180&k=1789897067658708522","The Language of Programming: On the Vocabulary of Names  \nNitsan Amit  \nDept. Computer Science The Hebrew University Jerusalem, Israel  \nDror G. Feitelson  \nDept. Computer Science The Hebrew University Jerusalem, Israel  \nAbstract—Most of the text in a computer program is composed of the names of variables and functions. These names are selected by one developer, and need to be understood by others. This is similar to the role of words written in natural language. But there are several marked differences between the names in a program and the words in a book. First, names are frequently composed of multiple existing words, in an attempt to capture nuanced meanings and intents. Second, because of the use of multiple words, names can be rather long. Third, conventions may also allow names to be very short, and many single-letter names are used. But despite these differences, the general statistics of names are rather similar to the statistics of words. Like words, the distribution of names is close to a Zipf distribution. Also, popular names tend to be shorter than rarely used names. However, the underlying vocabulary if different. The composition of words leads to a more diverse vocabulary that can grow without bounds. But if we look at the individual words used in compound names, we find a rather limited vocabulary. These properties help explain the predictability of software, and how it can coincide with the large variability of names. It also suggests that it may be beneficial to model programs at the level of individual words rather than at the level of source code tokens.  \nIndex Terms—variable name, program lexicon, words distribution  \nI. INTRODUCTION  \nWhen asked about the vocabulary of programming, most people think of programming language keywords: the basic types the language supports (int, float), the control structures (if, while), and so on. But the bulk of a program’s text is not made of keywords but of names — mainly the names that developers give to variables, data structures, and functions [16] . It is the names which imbue programs with meaning. For example, consider the following pair of code snippets:  \nfor x in c :  \ni f not r ( x ) :  \nx . s ( )  \nfor student in class members :  \ni f not ready for final exam ( student ) : [student . study](student . study) ( )  \nThe first is meaningless in the sense that it could mean anything. The second can be read nearly as if it was English prose. The difference lies in the meaningful names given  \nThis research was supported by the ISRAEL SCIENCE FOUNDATION (grant no. 832/18) .  \nto variables and functions. They anchor the program in the domain, and identify the elements and operations which the program performs. We can therefore claim that it is the names which constitute the language of programming.  \nIn studying the linguistic aspects of programming a natural place to begin is therefore the vocabulary of names. And given the emphasis in modern software development on selfexplanatory readable code, an interesting initial question is whether the use of names in programs is statistically similar to the use of words in natural languages.  \nThe study of word usage statistics is often associated with the name of George Kingsley Zipf. Following his investigation of word use frequencies in the 1930s, Zipf published two major findings[47]:  \n• The frequency of word usage is highly skewed. If the most frequently used word in a corpus is used k times, the second most frequently used word will appear about k/2 times, the third most frequent about k/3 times, and so forth. In general, the frequency of the rth ranked word will be  \nf(1)  \nf (r) =  \nr  \nThis equation is now commonly known as “Zipf’s law”.  \n• A word’s length is associated with its frequency ranking, with frequent words being shorter than infrequent words. Zipf called this “the principle of least effort” [48], based on the premise that uttering frequent words will require less effort if they are short.  \nWe start ","cbCaipAMSlZZuSll","https://ap.wps.com/l/cbCaipAMSlZZuSll","pdf",674276,"English","# Abstract\n# Introduction\n## Zipf’s law background\n## Study approach and data source\n## Findings and contributions","[{\"question\":\"What role do variable and function names play in programming?\",\"answer\":\"Names give programs meaning by anchoring them in the problem domain and identifying the elements and operations they perform.\"},{\"question\":\"What relationship between name frequency and rank does the paper investigate?\",\"answer\":\"It tests whether programming-name frequencies follow Zipf’s law, where the rth ranked item appears with frequency inversely proportional to r.\"},{\"question\":\"How do program name lengths differ from natural-language word lengths?\",\"answer\":\"Program names show a mode at length 1, a heavier tail with very long names, and differ because names are often formed by concatenating multiple words.\"}]","The Language of Programming - On the Vocabulary of Names | PDF",1790635074,25,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d9b9474b0f8b2fd0cffc049970e54b7e.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b5cfe8587c7bf3fc8de5f3a9dd8a4d89.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/aa5f7a37bc66be4f5a4a7bbda52d2908.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/46fdab483b7ee5b6f60020adcfd93cab.webp",980,1268,{"list":163,"token":66},[164,170,176,183,189,196,202,209,215,221],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":52,"category_name":40,"create_tm":169},491159,"How much input do you need to learn the most frequent 9,000 words?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928128001/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=H7fe8zc5gKIzVgyVHard2QlTy5Q%3D","how-much-input-do-you-need-to-learn-the-most-frequent-9000-words",1790846367,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":39,"category_name":40,"create_tm":175},423016,"Mining Programming Language Vocabularies from Source Code - Proceedings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922611455/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=1MZBmBn0JKD4xi6gRNnJMjv8U54%3D","mining-programming-language-vocabularies-from-source-code-proceedings",1790629755,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},273590,"TranslatePsy-AfriSLM - High-Quality Data Scaling For Low-Resource Machine Translation - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899953102/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=%2Fe%2Fg16hMMYE7qG9vssQgb6P1SZA%3D","translatepsy-afrislm-high-quality-data-scaling-for-low-resource-machine-translation-abstract",14,1789472221,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":29,"category_name":40,"create_tm":188},493111,"Doc2Token: Bridging Vocabulary Gap by Predicting Missing Tokens for E-commerce Search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928742298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=CoiUh%2BpJwFI5um4MWp%2BTsDB9esk%3D","doc2token-bridging-vocabulary-gap-by-predicting-missing-tokens-for-e-commerce-search",1790875728,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":40,"create_tm":195},273468,"Counting Documents Is Not Counting Text - Unit Bias in Web-PDF Corpus Statistics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899939742/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=2IcoCdeDCX%2FqZ2dYziZ2%2FFqveOw%3D","counting-documents-is-not-counting-text-unit-bias-in-web-pdf-corpus-statistics",16,1789471560,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":19,"category_name":40,"create_tm":201},726693,"[English-Corpora.org: a guided tour] - Mark Davies - November 2020","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028850210/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=oNINs3oM%2FdyikoaH1gv1H5knXxY%3D","english-corporaorg-a-guided-tour-mark-davies-november-2020",1795214542,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":40,"create_tm":208},345134,"Compound Word Transformer - Learning to Compose Full-Song Music over Dynamic Directed Hypergraphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229910879419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=VCwDPoVf9TdTXGKvGkakGtMjtA4%3D","compound-word-transformer-learning-to-compose-full-song-music-over-dynamic-directed-hypergraphs",17,1790056595,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":39,"category_name":40,"create_tm":214},651600,"Chapter 3 O&M Management - Section 3.1 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973499753/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=KH8s6%2Bjx3y4FfefKwiihIPUoV4o%3D","chapter-3-om-management-section-31-introduction",1792875457,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":34,"category_name":40,"create_tm":220},578395,"Input and Output in an English Classroom - A Young Learner Corpus of English (YoLeCorE)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229953219698/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=DHV010GI8jwC2CNfUxigGoiELaE%3D","input-and-output-in-an-english-classroom-a-young-learner-corpus-of-english-yolecore",1792033657,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":226,"category_name":40,"create_tm":227},158300,"Investigating the Lexical Demands of English-as-an-Additional-Language and General-Audience Podcasts and Their Potential for Incidental Vocabulary Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229870563475/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236859&Signature=NWigaOGYmv%2BqEexiakaaAUyinIs%3D","investigating-the-lexical-demands-of-english-as-an-additional-language-and-general-audience-podcasts-and-their-potential-for-incidental-vocabulary-learning",11,1787998822]