0.1.1 • Published 4 years ago

yang-policies v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Andrew Yang's 2020 Policies (yang-policies)

Build Status Yang Gang Badge

A consumable JSON list of Andrew Yang's 2020 policies found on yang2020.com

Despite the tremendous amount of policies from Andrew Yang's campaign, I couldn't manage to find any API's providing this information. So I built this JSON list from a simple script that crawls and scrapes yang2020.com to create an JSON formatted list of Andrew Yang's policies to be used for any potential software projects.

Install

$ npm install yang-policies

Usage

The JSON file is located in /policies.json, which can be downloaded and used externally.

const yangPolicies = require('yang-policies');

yangPolicies[0] // First Policy is The Freedom Dividend

API

yangPolicies

Returns JSON list of all policies

yangPolicies.count

Returns number of Andrew Yang's policies

yangPolicies.featured()

Returns Andrew Yang's 3 big policies

Policy Object

KeyTypeDescriptionExample
titlestringTitle of the policyThe Freedom Dividend
urlstringUrl to the policy pagehttps://www.yang2020.com/policies/the-freedom-dividend/
descriptionstringDescription of policyAndrew would implement the Freedom Dividend, a universal basic income of $1,000/month,...
problems_to_be_solvedarrayA list of problems to be solved by policy "Approx. 40 million Americans live below the poverty line.", " "It is necessary to support and preserve a robust consumer economy."
goalsarrayGoals to accomplish by policy"End poverty in the most direct manner possible: giving people money", "Allow people the freedom to switch jobs, move, innovate, and contribute to society"
as_presidentstringAndrew Yang's as president message regarding policy"As President, I will…\n\n Implement the Freedom Dividend, providing Universal Basic Income of $1,000/month to all American adults over the age of 18 so that we may all share in the prosperity we have contributed to and participate in the new economy.""
citationsarrayA list of additional citations{}
citations0.authorstringAuthor of CitationThomas Paine, 1796
citations0.quotestringQuote of citation"Out of a collected fund from landowners, “there shall be paid to every person…"..."
excerptstringExcerpt regarding policy"Universal Basic Income, or UBI, is a version of Social Security where all citizens..."

Note, some fields are null or empty if not available.

Policy Example:

 {
    "title": "Promote Vocational Education",
    "url": "https://www.yang2020.com/policies/promoting-vocational-education/",
    "description": "It seems we’re preparing our children for college earlier and earlier. College readiness is a driving force behind many educational decisions in this country. This has resulted in only 6% of American high school students being enrolled in a vocational program (in 2013), whereas comparable European nations have numbers closer to 50%.\nFor those that do start college, graduating isn’t a sure thing. 6 years after first enrolling, fewer than 60% of students have attained a degree. If you look at only open-admissions schools, the number drops to 32%. That represents a huge investment of money and time on the part of Americans that doesn’t lead them to a positive outcome.\nOn the other side, the underemployment rate for recent college grads is approaching 44%, and one-third end up in jobs that don’t require the degree they earned.\n\n College is being over-prescribed in this country. Not everyone has an interest in obtaining a college degree, and there are many jobs out there that don’t require it. Georgetown has estimated that there are 30 million good-paying jobs that don’t require a college degree. Most require some type of specialized training.\nAs a country, we need to dramatically increase our investment in vocational training, providing a viable career path for those students who are more interested in starting their careers immediately after high school instead of continuing with an education they don’t want but feel obligated to get.",
    "problems_to_be_solved": [
      "Too many students invest in college when it’s not the right investment for them.",
      "Too few students are aware of alternative career paths, or lack access to training for those paths.",
      "Some feel there is a stigma attached to vocational jobs."
    ],
    "main_quote": "There are tens of millions of jobs that will be with us for decades that don’t require a college degree: machinists, line repair, air-conditioning repair, exterminator, high-end manufacturing, and so on. We need to remove any stigma from vocational education and dramatically increase its visibility and availability. Apprenticeships should be a big part of the future of education for millions of Americans that would give them a runway to a fulfilling livelihood.",
    "goals": [
      "Increase vocational training options in public schools",
      "Counsel students on the right path for them based on their interests and career goals"
    ],
    "as_president": "As President, I will…\n\n Increase funding to vocational programs within public schools.\nDirect the Dept. of Education to provide materials to all public schools about career paths that don’t require a college degree.\nPrioritize career paths that students express interest in rather than giving blanket advice that college is the right/only option.\nBegin a public education campaign championing vocational jobs and education, “I Work With My Hands – And It’s Awesome.”",
    "excerpt": null,
    "citations": []
}

Contribute

Open to PR's to improve the JSON formatting, code quality, different file formats, tests, etc.

Build the JSON file with, npm run build-json.

License

The use of this module falls under MIT, use it to build and progress the Yang Gang.

If it isn't apparent, actual policy content belongs to yang2020.com.