Page MenuHomePhabricator

[BUG] IPA should be stripped from link preview text extracts
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce

  1. Go to the North Carolina article.
  2. Tap Charlotte.

Expected results

The most clear and concise description is shown.

Actual results

IPA pronunciations are shown.

screenshot-2016-05-13-14-29-36-033507732.png (800×480 px, 122 KB)

Environments observed

App version: 051ffe7de8a67dfb9babdab16c5e6913cf631511
Android OS versions: API 16
Device model: AOSP Nexus S emulator
Device language: English

https://en.wikipedia.org/api/rest_v1/page/mobile-sections-lead/Charlotte%2C_North_Carolina

{
  "id": 57447,
  "revision": "720060641",
  "lastmodified": "2016-05-13T13:30:56Z",
  "displaytitle": "Charlotte, North Carolina",
  "normalizedtitle": "Charlotte, North Carolina",
  "description": "county seat of Mecklenburg County,  North Carolina, United States",
  "editable": true,
  "languagecount": 87,
  "image": {
    "file": "Charlotte collage.jpg",
    "urls": {
      "320": "//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/320px-Charlotte_collage.jpg",
      "640": "//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/640px-Charlotte_collage.jpg",
      "800": "//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/692px-Charlotte_collage.jpg",
      "1024": "//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/692px-Charlotte_collage.jpg"
    }
  },
  "geo": {
    "latitude": 35.22694,
    "longitude": -80.84333
  },
  "sections": [
    {
      "id": 0,
      "text": "<span><p><b>Charlotte</b> <span><span class=\"ipa_button\"></span><span class=\"nowrap\" style=\"display: none;\"><span class=\"IPA nopopups\"><a href=\"/wiki/Help:IPA_for_English\">/<span style=\"border-bottom:1px dotted\"><span>ˈ</span><span>ʃ</span><span>ɑːr</span><span>l</span><span>ə</span><span>t</span></span>/</a></span></span></span> is the <a href=\"/wiki/List_of_cities_in_North_Carolina\">largest city</a> in the <a href=\"/wiki/U.S._state\">state</a> of <a href=\"/wiki/North_Carolina\">North Carolina</a>. It is the <a href=\"/wiki/County_seat\">county seat</a> of <a href=\"/wiki/Mecklenburg_County,_North_Carolina\">Mecklenburg County</a> and the second largest city in the <a href=\"/wiki/Southeastern_United_States\">southeastern United States</a>, just behind <a href=\"/wiki/Jacksonville,_Florida\">Jacksonville, Florida</a>. Charlotte is the third fastest growing major city in the United States.<span class=\"mw-ref\"><a href=\"#cite_note-3\" style=\"counter-reset: mw-Ref 3;\"><span class=\"mw-reflink-text\">[3]</span></a></span> In 2014, the estimated population of Charlotte according to the <a href=\"/wiki/U.S._Census_Bureau\">U.S.&nbsp;Census Bureau</a> was 809,958,<span class=\"mw-ref\"><a href=\"#cite_note-4\" style=\"counter-reset: mw-Ref 4;\"><span class=\"mw-reflink-text\">[4]</span></a></span> making it the <a href=\"/wiki/List_of_United_States_cities_by_population\">17th largest city</a> in the United States based on population. The <a href=\"/wiki/Charlotte_metropolitan_area\">Charlotte metropolitan area</a> ranks 22nd largest in the US and had a 2014 population of 2,380,314.<span class=\"mw-ref\"><a href=\"#cite_note-2014data-1\" style=\"counter-reset: mw-Ref 1;\"><span class=\"mw-reflink-text\">[1]</span></a></span>   The Charlotte metropolitan area is part of a sixteen-county market region or <a href=\"/wiki/Combined_statistical_area\">combined statistical area</a> with a 2014 U.S.<span>&nbsp;</span>Census population estimate of 2,537,990.<span class=\"mw-ref\"><a href=\"#cite_note-usacensuscsa-5\" style=\"counter-reset: mw-Ref 5;\"><span class=\"mw-reflink-text\">[5]</span></a></span> Residents of Charlotte are referred to as \"<a href=\"/wiki/List_of_people_from_Charlotte\">Charlotteans</a>\".  It is listed as a \"gamma-plus\" <a href=\"/wiki/Global_city\">global city</a> by the <a href=\"/wiki/Globalization_and_World_Cities_Research_Network\">Globalization and World Cities Research Network</a>.<span class=\"mw-ref\"><a href=\"#cite_note-6\" style=\"counter-reset: mw-Ref 6;\"><span class=\"mw-reflink-text\">[6]</span></a></span></p></span><div class=\"hatnote\">\"Charlotte\" redirects here. For other uses, see <a href=\"/wiki/Charlotte_(disambiguation)\">Charlotte (disambiguation)</a>.</div>\n\n<table class=\"infobox geography vcard\" style=\"width:22em;width:23em\"><tbody><tr><th colspan=\"2\" style=\"text-align:center;font-size:125%;font-weight:bold;font-size:1.25em; white-space:nowrap\"><span class=\"fn org\">Charlotte, North Carolina</span></th></tr><tr><td colspan=\"2\" style=\"text-align:center;background-color:#cddeff; font-weight:bold;\">\n<span class=\"category\"><a href=\"/wiki/City\">City</a></span></td></tr><tr class=\"mergedtoprow\"><th colspan=\"2\" style=\"text-align:center\">City of Charlotte</th></tr><tr><td colspan=\"2\" style=\"text-align:center;padding:0.7em 0.8em\">\n<p><span><a href=\"/wiki/File:Charlotte_collage.jpg\"><img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/250px-Charlotte_collage.jpg\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/500px-Charlotte_collage.jpg 2x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Charlotte_collage.jpg/375px-Charlotte_collage.jpg 1.5x\" height=\"370\" width=\"250\"></a></span></p><div>Clockwise: <a href=\"/wiki/UNC_Charlotte\">UNC Charlotte</a>, <a href=\"/wiki/Harvey_B._Gantt_Center_for_African-American_Arts_+_Culture\">Harvey B. Gantt Center for African-American Arts + Culture</a>, <a href=\"/wiki/Duke_Energy_Center\">Duke Energy Center</a>, Charlotte's skyline, First Presbyterian Church of Charlotte, Charlotte Main Library and <a href=\"/wiki/NASCAR_Hall_of_Fame\">NASCAR Hall of Fame</a> building</div></td></tr><tr class=\"mergedtoprow\"><td colspan=\"2\" class=\"maptable\" style=\"text-align:center\">\n<table style=\"width:100%; background:none;\">\n<tbody><tr><td style=\"vertical-align:middle; text-align:center;\"><span class=\"mw-image-border\"><a href=\"/wiki/File:Charlotteflag.png\"><img src=\"//upload.wikimedia.org/wikipedia/en/thumb/6/68/Charlotteflag.png/100px-Charlotteflag.png\" srcset=\"//upload.wikimedia.org/wikipedia/en/6/68/Charlotteflag.png 2x, //upload.wikimedia.org/wikipedia/en/thumb/6/68/Charlotteflag.png/150px-Charlotteflag.png 1.5x\" height=\"60\" width=\"100\"></a></span><br><small><b>Flag</b></small></td></tr></tbody></table></td></tr><tr class=\"mergedrow\"><td colspan=\"2\" style=\"text-align:center\">\nNickname(s): <span class=\"nickname\">The Queen City, The QC, The Hornet's Nest</span></td></tr><tr class=\"mergedrow\"><td colspan=\"2\" style=\"text-align:center\">\n<span><a href=\"/wiki/File:Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg\"><img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg/250px-Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg.png\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg/500px-Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg.png 2x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg/375px-Mecklenburg_County_North_Carolina_Incorporated_and_Unincorporated_areas_Charlotte_highlighted.svg.png 1.5x\" height=\"220\" width=\"250\"></a></span><br><small>Charlotte's location in <a href=\"/wiki/Mecklenburg_County,_North_Carolina\">Mecklenburg County</a> in the state of <a href=\"/wiki/North_Carolina\">North Carolina</a></small></td></tr><tr class=\"mergedtoprow\"><td colspan=\"2\" style=\"text-align:center\">\n<div class=\"center\"><div style=\"width:250px;float:none;clear:both;margin-left:auto;margin-right:auto\"><div style=\"width:250px;padding:0\"><div style=\"position:relative;width:250px\"><span><a href=\"/wiki/File:Usa_edcp_location_map.svg\"><img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/2/20/Usa_edcp_location_map.svg/250px-Usa_edcp_location_map.svg.png\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/2/20/Usa_edcp_location_map.svg/500px-Usa_edcp_location_map.svg.png 2x, //upload.wikimedia.org/wikipedia/commons/thumb/2/20/Usa_edcp_location_map.svg/375px-Usa_edcp_location_map.svg.png 1.5x\" height=\"155\" width=\"250\"></a></span><div style=\"position:absolute;top:58.014%;left:76.602%\"><div style=\"position:absolute;left:-3px;top:-3px;line-height:0\"><span><span><img src=\"//upload.wikimedia.org/wikipedia/en/thumb/0/0c/Red_pog.svg/6px-Red_pog.svg.png\" srcset=\"//upload.wikimedia.org/wikipedia/en/thumb/0/0c/Red_pog.svg/12px-Red_pog.svg.png 2x, //upload.wikimedia.org/wikipedia/en/thumb/0/0c/Red_pog.svg/9px-Red_pog.svg.png 1.5x\" height=\"6\" width=\"6\"></span></span></div><div style=\"font-size:90%;line-height:110%;position:absolute;width:6em;top:-0.75em;right:4px;text-align:right\"><span style=\"padding:1px;float:right\">Charlotte, North Carolina</span></div></div></div></div></div></div><p><small>Location in the <a href=\"/wiki/United_States_of_America\">United States of America</a></small></p></td></tr><tr class=\"mergedbottomrow\"><td colspan=\"2\" style=\"text-align:center\">\nCoordinates: <span style=\"white-space:nowrap\"><span class=\"plainlinks nourlexpansion\"><a href=\"//tools.wmflabs.org/geohack/geohack.php?pagename=Charlotte%2C_North_Carolina&amp;params=35_13_37_N_80_50_36_W_type:city_region:US-NC\"><span class=\"geo-default\"><span class=\"geo-dms\"><span class=\"latitude\">35°13′37″N</span> <span class=\"longitude\">80°50′36″W</span></span></span></a></span><span style=\"font-size: small;\"></span></span></td></tr><tr class=\"mergedtoprow\"><th scope=\"row\"><a href=\"/wiki/List_of_countries\">Country</a></th><td>\nUnited States</td></tr><tr class=\"mergedrow\"><th scope=\"row\"><a href=\"/wiki/US_state\">State</a></th><td>\n<a href=\"/wiki/North_Carolina\">North Carolina</a></td></tr><tr class=\"mergedrow\"><th scope=\"row\"><a href=\"/wiki/List_of_counties_in_North_Carolina\">County</a></th><td>\n<a href=\"/wiki/Mecklenburg_County,_North_Carolina\">Mecklenburg County</a></td></tr><tr class=\"mergedtoprow\"><th scope=\"row\">Settled</th><td>\n1755</td></tr><tr class=\"mergedrow\"><th scope=\"row\">Incorporated</th><td>\n1768 (as a town, later a city)</td></tr><tr class=\"mergedtoprow\"><th colspan=\"2\" style=\"text-align:center;text-align:left\">Government</th></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span>Type</th><td>\n<a href=\"/wiki/Council-manager\">Council-manager</a></td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span>Body</th><td class=\"agent\">\n<a href=\"/wiki/List_of_city_council_members_in_Charlotte\">City Council of Charlotte, North Carolina</a></td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span><a href=\"/wiki/Mayor\">Mayor</a></th><td>\n<a href=\"/wiki/Jennifer_Roberts_(politician)\">Jennifer Roberts</a> (<a href=\"/wiki/Democratic_Party_United_States\">D</a>)</td></tr><tr class=\"mergedtoprow\"><th colspan=\"2\" style=\"text-align:center;text-align:left\">Area</th></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span><a href=\"/wiki/City\">City</a></th><td>\n<a href=\"/wiki/1_E+8_m²\">297.7<span>&nbsp;</span>sq<span>&nbsp;</span>mi</a> (771<span>&nbsp;</span>km<sup>2</sup>)</td></tr><tr class=\"mergedtoprow\"><th scope=\"row\">Elevation</th><td>\n751<span>&nbsp;</span>ft (229<span>&nbsp;</span>m)</td></tr><tr class=\"mergedtoprow\"><th colspan=\"2\" style=\"text-align:center;text-align:left\">Population <span style=\"font-weight:normal\">(2014)<span class=\"mw-ref\"><a href=\"#cite_note-2014data-1\" style=\"counter-reset: mw-Ref 1;\"><span class=\"mw-reflink-text\">[1]</span></a></span></span></th></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span><a href=\"/wiki/City\">City</a></th><td>\n809,958 (<a href=\"/wiki/List_of_United_States_cities_by_population\">17th</a>)</td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span>Density</th><td>\n2,720.7/sq<span>&nbsp;</span>mi (1,050.5/km<sup>2</sup>)</td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span><a href=\"/wiki/Urban_area\">Urban</a></th><td>\n1,249,442 (<a href=\"/wiki/List_of_United_States_urban_areas\">38th</a>)</td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span>&nbsp;</span>•<span>&nbsp;</span><a href=\"/wiki/Metropolitan_area\">Metro</a></th><td>\n2,380,314 (<a href=\"/wiki/List_of_metropolitan_statistical_areas\">22nd</a>)</td></tr><tr class=\"mergedtoprow\"><th scope=\"row\"><a href=\"/wiki/Demonym\">Demonym(s)</a></th><td>\nCharlottean</td></tr><tr class=\"mergedtoprow\"><th scope=\"row\"><a href=\"/wiki/Time_zone\">Time zone</a></th><td>\n<a href=\"/wiki/Eastern_Standard_Time_Zone\">EST</a> (<a href=\"/wiki/Coordinated_Universal_Time\">UTC-5</a>)</td></tr><tr class=\"mergedrow\"><th scope=\"row\"><span style=\"white-space:nowrap\"><span>&nbsp;</span>•<span>&nbsp;</span>Summer (<a href=\"/wiki/Daylight_saving_time\">DST</a>)</span></th><td>\n<a href=\"/wiki/Eastern_Daylight_Time\">EDT</a> (<a href=\"/wiki/Coordinated_Universal_Time\">UTC-4</a>)</td></tr><tr class=\"mergedtoprow\"><th scope=\"row\">ZIP code</th><td class=\"adr\">\n<span class=\"postal-code\">28201-28237, 28240-28247, 28250, 28253-28256, 28258,  28260-28262, 28265-28266, 28269-28275, 28277-28278, 28280-28290, 28296-28297, 28299</span></td></tr><tr class=\"mergedrow\"><th scope=\"row\"><a href=\"/wiki/Telephone_numbering_plan\">Area code(s)</a></th><td>\n<a href=\"/wiki/Area_code_704\">704</a>, <a href=\"/wiki/Area_code_980\">980</a></td></tr><tr class=\"mergedtoprow\"><th scope=\"row\"><a href=\"/wiki/Federal_Information_Processing_Standard\">FIPS code</a></th><td>\n37-12000<span class=\"mw-ref\"><a href=\"#cite_note-2014data-1\" style=\"counter-reset: mw-Ref 1;\"><span class=\"mw-reflink-text\">[1]</span></a></span></td></tr><tr class=\"mergedrow\"><th scope=\"row\"><a href=\"/wiki/Geographic_Names_Information_System\">GNIS</a> feature ID</th><td>\n1019610<span class=\"mw-ref\"><a href=\"#cite_note-GR3-2\" style=\"counter-reset: mw-Ref 2;\"><span class=\"mw-reflink-text\">[2]</span></a></span></td></tr><tr class=\"mergedtoprow\"><th scope=\"row\">Website</th><td>\n<span class=\"url\"><a href=\"http://www.charmeck.org\">www<wbr>.charmeck<wbr>.org</a></span></td></tr></tbody></table><div class=\"hatnote\" style=\"color:red\"><strong>Warning:</strong> Page using <a href=\"/wiki/Template:Infobox_settlement\">Template:Infobox settlement</a> with unknown parameter \"population_csa\" (this message is shown only in preview).</div><span></span>\n\n\n\n<p>Charlotte is home to the corporate headquarters of <a href=\"/wiki/Bank_of_America\">Bank of America</a> and the <a href=\"/wiki/East_Coast_of_the_United_States\">east coast</a> operations of <a href=\"/wiki/Wells_Fargo\">Wells Fargo</a>, which along with other financial institutions makes it the second largest banking center in the United States.<span class=\"mw-ref\"><a href=\"#cite_note-CBJ_2012-09-04-7\" style=\"counter-reset: mw-Ref 7;\"><span class=\"mw-reflink-text\">[7]</span></a></span> Among Charlotte's many notable attractions, some of the most popular include the <a href=\"/wiki/Carolina_Panthers\">Carolina Panthers</a> of the <a href=\"/wiki/National_Football_League\">National Football League</a> (NFL), the <a href=\"/wiki/Charlotte_Hornets\">Charlotte Hornets</a> of the <a href=\"/wiki/National_Basketball_Association\">National Basketball Association</a> (NBA), the <a href=\"/wiki/Charlotte_Independence\">Charlotte Independence</a> of the <a href=\"/wiki/United_Soccer_League\">United Soccer League</a> (USL), two <a href=\"/wiki/NASCAR_Sprint_Cup\">NASCAR Sprint Cup</a> races and the <a href=\"/wiki/NASCAR_Sprint_All-Star_Race\">NASCAR All-Star Race</a>, the <a href=\"/wiki/Wells_Fargo_Championship\">Wells Fargo Championship</a>, the <a href=\"/wiki/NASCAR_Hall_of_Fame\">NASCAR Hall of Fame</a>, <a href=\"/wiki/Carowinds\">Carowinds</a> amusement park, and the <a href=\"/wiki/U.S._National_Whitewater_Center\">U.S. National Whitewater Center</a>. <a href=\"/wiki/Charlotte_Douglas_International_Airport\">Charlotte Douglas International Airport</a> is a major international hub, and was ranked the 23rd busiest airport in the world by passenger traffic in 2013.<span class=\"mw-ref\"><a href=\"#cite_note-8\" style=\"counter-reset: mw-Ref 8;\"><span class=\"mw-reflink-text\">[8]</span></a></span></p>\n\n<p>Nicknamed the <i>Queen City</i>,<span class=\"mw-ref\"><a href=\"#cite_note-caucus-9\" style=\"counter-reset: mw-Ref 9;\"><span class=\"mw-reflink-text\">[9]</span></a></span> like its county a few years earlier, Charlotte was named in honor of <a href=\"/wiki/Charlotte_of_Mecklenburg-Strelitz\">Charlotte of Mecklenburg-Strelitz</a>, who had become the <a href=\"/wiki/List_of_British_consorts#House_of_Hanover\">Queen of Great Britain</a> just seven years before the town's incorporation. A second nickname derives from the <a href=\"/wiki/American_Revolutionary_War\">American Revolutionary War</a>, when British commander <a href=\"/wiki/Charles_Cornwallis,_1st_Marquess_Cornwallis\">General Cornwallis</a> occupied the city but was driven out by hostile residents, prompting him to write that Charlotte was \"a <a href=\"/wiki/Hornet\">hornet</a>'s nest of rebellion\", leading to the nickname <i>The Hornet's Nest</i>.</p>\n\n<p>Charlotte has a <a href=\"/wiki/Humid_subtropical_climate\">humid subtropical climate</a>. Charlotte is located several miles east of the <a href=\"/wiki/Catawba_River\">Catawba River</a> and southeast of <a href=\"/wiki/Lake_Norman\">Lake Norman</a>, the largest man-made lake in North Carolina. <a href=\"/wiki/Lake_Wylie\">Lake Wylie</a> and <a href=\"/wiki/Mountain_Island_Lake\">Mountain Island Lake</a> are two smaller man-made lakes located near the city.</p>\n\n"
    },
    {
      "id": 1,
      "toclevel": 1,
      "anchor": "History",
      "line": "History"
    },
    {
      "id": 2,
      "toclevel": 2,
      "anchor": "After_the_American_Revolution",
      "line": "After the American Revolution"
    },
    {
      "id": 3,
      "toclevel": 2,
      "anchor": "WWI_to_present",
      "line": "WWI to present"
    },
    {
      "id": 4,
      "toclevel": 1,
      "anchor": "Geography",
      "line": "Geography"
    },
    {
      "id": 5,
      "toclevel": 2,
      "anchor": "Cityscape",
      "line": "Cityscape"
    },
    {
      "id": 6,
      "toclevel": 2,
      "anchor": "Climate_and_environment",
      "line": "Climate and environment"
    },
    {
      "id": 7,
      "toclevel": 1,
      "anchor": "Demographics",
      "line": "Demographics"
    },
    {
      "id": 8,
      "toclevel": 2,
      "anchor": "Religion",
      "line": "Religion"
    },
    {
      "id": 9,
      "toclevel": 1,
      "anchor": "Economy",
      "line": "Economy"
    },
    {
      "id": 10,
      "toclevel": 2,
      "anchor": "Top_employers",
      "line": "Top employers"
    },
    {
      "id": 11,
      "toclevel": 1,
      "anchor": "Culture",
      "line": "Culture"
    },
    {
      "id": 12,
      "toclevel": 2,
      "anchor": "Museums",
      "line": "Museums"
    },
    {
      "id": 13,
      "toclevel": 2,
      "anchor": "Performing_arts",
      "line": "Performing arts"
    },
    {
      "id": 14,
      "toclevel": 2,
      "anchor": "Festivals_and_special_events",
      "line": "Festivals and special events"
    },
    {
      "id": 15,
      "toclevel": 2,
      "anchor": "Zoos_and_aquariums",
      "line": "Zoos and aquariums"
    },
    {
      "id": 16,
      "toclevel": 1,
      "anchor": "Sports",
      "line": "Sports"
    },
    {
      "id": 17,
      "toclevel": 1,
      "anchor": "Law.2C_government_and_politics",
      "line": "Law, government and politics"
    },
    {
      "id": 18,
      "toclevel": 2,
      "anchor": "City_services",
      "line": "City services"
    },
    {
      "id": 19,
      "toclevel": 3,
      "anchor": "Emergency_medical_services",
      "line": "Emergency medical services"
    },
    {
      "id": 20,
      "toclevel": 3,
      "anchor": "Hospitals",
      "line": "Hospitals"
    },
    {
      "id": 21,
      "toclevel": 3,
      "anchor": "Fire_department",
      "line": "Fire department"
    },
    {
      "id": 22,
      "toclevel": 3,
      "anchor": "Law_enforcement_and_crime",
      "line": "Law enforcement and crime"
    },
    {
      "id": 23,
      "toclevel": 1,
      "anchor": "Education_and_libraries",
      "line": "Education and libraries"
    },
    {
      "id": 24,
      "toclevel": 2,
      "anchor": "School_system",
      "line": "School system"
    },
    {
      "id": 25,
      "toclevel": 2,
      "anchor": "Colleges_and_universities",
      "line": "Colleges and universities"
    },
    {
      "id": 26,
      "toclevel": 2,
      "anchor": "Libraries",
      "line": "Libraries"
    },
    {
      "id": 27,
      "toclevel": 1,
      "anchor": "Media",
      "line": "Media"
    },
    {
      "id": 28,
      "toclevel": 1,
      "anchor": "Infrastructure",
      "line": "Infrastructure"
    },
    {
      "id": 29,
      "toclevel": 2,
      "anchor": "Waste_treatment",
      "line": "Waste treatment"
    },
    {
      "id": 30,
      "toclevel": 2,
      "anchor": "Transportation",
      "line": "Transportation"
    },
    {
      "id": 31,
      "toclevel": 3,
      "anchor": "Mass_transit",
      "line": "Mass transit"
    },
    {
      "id": 32,
      "toclevel": 3,
      "anchor": "Walkability",
      "line": "Walkability"
    },
    {
      "id": 33,
      "toclevel": 3,
      "anchor": "Roads_and_highways",
      "line": "Roads and highways"
    },
    {
      "id": 34,
      "toclevel": 3,
      "anchor": "Air",
      "line": "Air"
    },
    {
      "id": 35,
      "toclevel": 3,
      "anchor": "Intercity_transportation",
      "line": "Intercity transportation"
    },
    {
      "id": 36,
      "toclevel": 1,
      "anchor": "Notable_people",
      "line": "Notable people"
    },
    {
      "id": 37,
      "toclevel": 1,
      "anchor": "Twin_towns_.E2.80.93_Sister_cities",
      "line": "Twin towns – Sister cities"
    },
    {
      "id": 38,
      "toclevel": 1,
      "anchor": "See_also",
      "line": "See also"
    },
    {
      "id": 39,
      "toclevel": 1,
      "anchor": "Notes",
      "line": "Notes"
    },
    {
      "id": 40,
      "toclevel": 1,
      "anchor": "References",
      "line": "References"
    },
    {
      "id": 41,
      "toclevel": 1,
      "anchor": "Further_reading",
      "line": "Further reading"
    },
    {
      "id": 42,
      "toclevel": 1,
      "anchor": "External_links",
      "line": "External links"
    }
  ]
}

Event Timeline

Niedzielski set the point value for this task to 1.May 25 2016, 7:41 PM

I've opened a PR with a very simple regex-based approach, but I'm not 100% sure that will actually work for all the articles and will not create any artifacts or remove something we don't want to remove. https://github.com/wikimedia/restbase/pull/624

Dbrant claimed this task.