text: let text = "My friends, we are in the midst of a defining and pivotal moment for our country and our planet. And, with so many crises converging upon us simultaneously, it is easy for us to become overwhelmed or depressed, or to even throw up our hands in resignation. But my message to you today is that if there was ever a moment in the history of our country where despair was not an option, this is that time. If there was ever a moment where we had to effectively analyze the competing political and social forces which define this historical period, this is that time. If there was ever a moment when we needed to stand up and fight against the forces of oligarchy and authoritarianism, this is that time. And, if there was ever a moment when we needed a new vision to bring our people together in the fight for justice, decency and human dignity, this is that time. In the year 2019 the United States and the rest of the world face two very different political paths. On one hand, there is a growing movement towards oligarchy and authoritarianism in which a small number of incredibly wealthy and powerful billionaires own and control a significant part of the economy and exert enormous influence over the political life of our country. On the other hand, in opposition to oligarchy, there is a movement of working people and young people who, in ever increasing numbers, are fighting for justice. They are the teachers taking to the streets to make certain that schools are adequately funded and that their students get a quality education. They are workers at Disney, Amazon, Walmart and the fast food industry standing up and fighting for a living wage of at least $15 an hour and the right to have a union. They are young people taking on the fossil fuel industry and demanding policies that transform our energy system and protect our planet from the ravages of climate change. They are women who refuse to give control of their bodies to local, state and federal politicians. They are people of color and their allies demanding an end to systemic racism and massive racial inequities that exist throughout our society. They are immigrants and their allies fighting to end the demonization of undocumented people and for comprehensive immigration reform. When we talk about oligarchy, let us be clear about what we mean. Right now, in the United States of America, three families control more wealth than the bottom half of our country, some 160 million Americans. The top 1 percent own more wealth than the bottom 92 percent and 49 percent of all new income generated today goes to the top 1 percent. In fact, income and wealth inequality today in the United States is greater than at any time since the 1920s. And when we talk about oligarchy, it is not just that the very rich are getting much richer. It is that tens of millions of working-class people, in the wealthiest country on earth, are suffering under incredible economic hardship, desperately trying to survive. Today, nearly 40 million Americans live in poverty and tonight, 500,000 people will be sleeping out on the streets. About half of the country lives paycheck to paycheck as tens of millions of our people are an accident, a divorce, a sickness or a layoff away from economic devastation. While many public schools throughout the country lack the resources to adequately educate our young people, we are the most heavily incarcerated nation on earth. After decades of policies that have encouraged and subsidized unbridled corporate greed, we now have an economy that is fundamentally broken and grotesquely unfair. Even while macroeconomic numbers like GDP, the stock market and the unemployment rate are strong, millions of middle class and working people struggle to keep their heads above water, while the billionaire class consumes the lion\'s share of the wealth that we are collectively creating as a nation. In the midst of a so-called booming economy real wages for the average worker have barely risen at all. And despite an explosion in technology and worker productivity, the average wage of the American worker in real dollars is no higher than it was 46 years ago and millions of people are forced to work two or three jobs just to survive. And here is something quite incredible that tells you all you need to know about the results of unfettered capitalism. All of us want to live long, happy, and productive lives but. in America today the very rich live on average 15 years longer than the poorest Americans. In 2014, in McDowell County, West Virginia, one of the poorest counties in the nation, life expectancy for men was 64 years. In Fairfax County, Virginia, a wealthy county, just 350 miles away, life expectancy for men was nearly 82 years, an 18-year differential. The life expectancy gap for women in the two counties was 12 years. In other words, the issue of unfettered capitalism is not just an academic debate, poverty, economic distress and despair are life-threatening issues for millions of working people in the country. While the rich get richer they live longer lives. While poor and working families struggle economically and often lack adequate health care, their life expectancy is declining for the first time in modern American history. Taken together, the American Dream of upward mobility is in peril. In fact, if we don\'t turn things around, our younger generation will, for the first time in living memory, have a lower standard of living than their parents. This is not acceptable. Globally, the situation is even more shocking with most of the world\'s wealth concentrated among a very few, while billions of people have almost nothing. Today, the world\'s richest 26 billionaires now own as much wealth as the poorest 3.8 billion people on the planet -- half of the world\'s population. But the struggle we are facing today is not just economic. Across the globe, the movement toward oligarchy runs parallel to the growth of authoritarian regimes -- like Putin in Russia, Xi in China, Mohamed Bin Salman in Saudi Arabia, Rodrigo Duterte in the Philippines, Jair Bolsonaro in Brazil, and Viktor Orbán in Hungary among others. These leaders meld corporatist economics with xenophobia and authoritarianism. They redirect popular anger about inequality and declining economic conditions into violent rage against minorities -- whether they are immigrants, racial minorities, religious minorities or the LGBT community. And to suppress dissent, they are cracking down on democracy and human rights. In the United States, of course, we have our own version of this movement -- which is being led by President Trump and many of his Republican allies who are attempting to divide our country up and attack these same communities. How sad it is that President Trump sees these authoritarian leaders as friends and allies. This authoritarian playbook is not new. The challenge we confront today as a nation, and as a world, is in many ways not different from the one we faced a little less than a century ago, during and after the Great Depression in the 1930s. Then, as now, deeply-rooted and seemingly intractable economic and social disparities led to the rise of right-wing nationalist forces all over the world. In Europe, the anger and despair was ultimately harnessed by authoritarian demagogues who fused corporatism, nationalism, racism and xenophobia into a political movement that amassed totalitarian power, destroyed democracy, and ultimately murdering millions of people -- including members of my own family. But we must remember that those were not the only places where dark forces tried to rise up. Today, we are all rightly repulsed by the sight of neo-Nazis and Klansmen openly marching in Charlottesville, VA, and we are horrified by houses of worship being shot up by right-wing terrorists. But on February 20, 1939, over 20,000 Nazis held a mass rally -- not in Berlin, not in Rome, but in Madison Square Garden, in front of a 30-foot-tall banner of George Washington -- bordered with swastikas -- in New York City. But back then, those American extremists could not replicate the success of their authoritarian brethren across the ocean because we in the United States, thankfully, made a different choice than Europe did in responding to the era\'s social and economic crises. We rejected the ideology of Mussolini and Hitler -- we instead embraced the bold and visionary leadership of President Franklin Delano Roosevelt, then the leader of the progressive wing of the Democratic Party. Together with organized labor, leaders in the African American community and progressives inside and outside the Party, Roosevelt led a transformation of the American government and the American economy. Like today, the quest for transformative change was opposed by big business, Wall Street, the political establishment, by the Republican Party and by the conservative wing of FDR\'s own Democratic Party. And he faced the same scare tactics then that we experience today -- red baiting, xenophobia, racism and anti-Semitism. In a famous 1936 campaign speech Roosevelt stated,  \"We had to struggle with the old enemies of peace--business and financial monopoly, speculation, reckless banking, class antagonism, sectionalism, war profiteering.\" They had begun to consider the government of the United States as a mere appendage to their own affairs. We know now that government by organized money is just as dangerous as government by organized mob.  \"Never before in all our history have these forces been so united against one candidate as they stand today. They are unanimous in their hate for me -- and I welcome their hatred.\"Despite that opposition, by rallying the American people, FDR and his progressive coalition created the New Deal, won four terms, and created an economy that worked for all and not just the few. Today, New Deal initiatives like Social Security, unemployment compensation, the right to form a union, the minimum wage, protection for farmers, regulation of Wall Street and massive infrastructure improvements are considered pillars of American society. But, while he stood up for the working families of our country, we can never forget that President Roosevelt was reviled by the oligarchs of his time, who berated these extremely popular programs as  \"socialism.\" Similarly, in the 1960s, when Lyndon Johnson brought about Medicare, Medicaid and other extremely popular programs, he was also viciously attacked by the ruling class of this country. And here is the point. It is no exaggeration to state, that not only did FDR\'s agenda improve the lives of millions of Americans, but the New Deal was enormously popular politically and helped defeat far-right extremism. For a time. Today, America and the world are once again moving towards authoritarianism -- and the same right-wing forces of oligarchy, corporatism, nationalism, racism and xenophobia are on the march, pushing us to make the apocalyptically wrong choice that Europe made in the last century. Today, we now see a handful of billionaires with unprecedented wealth and power. We see huge private monopolies -- operating outside of any real democratic oversight and often subsidized by taxpayers -- with the power to control almost every aspect of our lives. They are the profit-taking gatekeepers of our health care, our technology, our finance system, our food supply and almost all of the other basic necessities of life. They are Wall Street, the insurance companies, the drug companies, the fossil fuel industry, the military industrial complex, the prison industrial complex and giant agri-businesses. They are the entities with unlimited wealth who surround our nation\'s capitol with thousands of well-paid lobbyists, who to a significant degree write the laws that we live under. Today, we have a demagogue in the White House who, for cheap political gain, is attempting to deflect the attention of the American people away from the real crises that we face and, instead, is doing what demagogues always do -- and that is divide people up and legislate hatred. This is a president who supports brutal family separations, border walls, Muslim bans, anti-LGBT policies, deportations and voter suppression. It is my very strong belief that the United States must reject that path of hatred and divisiveness -- and instead find the moral conviction to choose a different path, a higher path, a path of compassion, justice and love. It is the path that I call democratic socialism. Over eighty years ago Franklin Delano Roosevelt helped create a government that made transformative progress in protecting the needs of working families. Today, in the second decade of the 21st century, we must take up the unfinished business of the New Deal and carry it to completion. This is the unfinished business of the Democratic Party and the vision we must accomplish. In order to accomplish that goal, it means committing ourselves to protecting political rights, to protecting civil rights -- and to protect economic rights of all people in this country. As FDR stated in his 1944 State of the Union address:  \"We have come to a clear realization of the fact that true individual freedom cannot exist without economic security and independence.\" Today, our Bill of Rights guarantees the American people a number of important constitutionally protected political rights. And while we understand that these rights have not always been respected and we have so much more work to do, we are proud that our constitution guarantees freedom of religion, freedom of expression, freedom of assembly, a free press and other rights because we understand that we can never have true American freedom unless we are free from authoritarian tyranny. Now, we must take the next step forward and guarantee every man, woman and child in our country basic economic rights -- the right to quality health care, the right to as much education as one needs to succeed in our society, the right to a good job that pays a living wage, the right to affordable housing, the right to a secure retirement, and the right to live in a clean environment. We must recognize that in the 21st century, in the wealthiest country in the history of the world, economic rights are human rights. That is what I mean by democratic socialism. As Dr. Martin Luther King Jr. said,  \"Call it democracy, or call it democratic socialism, but there must be a better distribution of wealth within this country for all of God \'s children.\" To realize this vision, we must not view America only as a population of disconnected individuals, we must also view ourselves as part of  \"an inescapable network of mutuality, tied in a single garment of destiny,\" as Dr. King put it. In other words, we are in this together. We must see ourselves as part of one nation, one community and one society -- regardless of race, gender, religion, sexual orientation, or country of origin. This quintessentially American idea is literally emblazoned on our coins: E Pluribus Unum. From the many, one. And, I should tell you, it is enshrined in the motto of our campaign for the presidency -- Not me, Us. Let me be clear. I do understand that I and other progressives will face massive attacks from those who attempt to use the word  \"socialism\" as a slur. But I should also tell you that I have faced and overcome these attacks for decades -- and I am not the only one. Let us remember that in 1932, Republican President Herbert Hoover claimed that Franklin Roosevelt\'s New Deal was,  \"a disguise for the totalitarian state.\" In 1936 former Democratic New York Governor and presidential candidate Al Smith said in a speech about FDR  \'s New Deal policies,  \"Just get the platform of the Democratic Party and get the platform of the Socialist Party and lay them down on your dining-room table, side by side.\" When President Harry Truman proposed a national health care program, the American Medical Association hired Ronald Reagan as their pitchman. The AMA called the legislation that stemmed from his proposal  \"socialized medicine\" claiming that White House staff were,  \"followers of the Moscow party line.\" In 1960, Ronald Reagan in a letter to Richard Nixon wrote the following about John F. Kennedy:  \"Under the tousled boyish haircut is still old Karl Marx.\" In the 1990s, then Congressman Newt Gingrich claimed President Bill Clinton\'s health care plan was  \"centralized bureaucratic socialism.\" The conservative Heritage Foundation has claimed that the Children\'s Health Insurance Program (CHIP) was  \"a step towards socialism.\" Former Speaker of the House John Boehner claimed the stimulus package, the omnibus spending bill and the budget proposed by President Barack Obama were \"all one big down payment on a new American socialist experiment.\" In this regard, President Harry Truman was right when he said that:\"Socialism is the epithet they have hurled at every advance the people have made in the last 20 years. Socialism is what they called Social Security. Socialism is what they called farm price supports. Socialism is what they called bank deposit insurance. Socialism is what they called the growth of free and independent labor organizations. Socialism is their name for almost anything that helps all the people.\" Now let\'s be clear: while President Trump and his fellow oligarchs attack us for our support of democratic socialism, they don\'t really oppose all forms of socialism. They may hate democratic socialism because it benefits working people, but they absolutely love corporate socialism that enriches Trump and other billionaires. Let us never forget the unbelievable hypocrisy of Wall Street, the high priests of unfettered capitalism. In 2008, after their greed, recklessness and illegal behavior created the worst financial disaster since the Great Depression -- with millions of Americans losing their jobs, their homes and their life savings -- Wall Street\'s religious adherence to unfettered capitalism suddenly came to an end. Overnight, Wall Street became big government socialists and begged for the largest federal bailout in American history -- some $700 billion from the Treasury and trillions in support from the Federal Reserve. But it\'s not just Wall Street that loves socialism -- when it works for them. It is the norm across the entire corporate world. The truth is corporate America receives hundreds of billions of dollars in federal support every single year, while these same people are trying to cut programs that benefit ordinary Americans. If you are a fossil fuel company, whose carbon emissions are destroying the planet, you get billions in government subsidies including special tax breaks, royalty relief, funding for research and development and numerous tax loopholes. If you are a pharmaceutical company, you make huge profits on patent rights for medicines that were developed with taxpayer funded research. If you are a monopoly like Amazon, owned by the wealthiest person in America, you get hundreds of millions of dollars in economic incentives from taxpayers to build warehouses and you end up paying not one penny in federal income taxes. If you are the Walton family, the wealthiest family in America, you get massive government subsidies because your low wage workers are forced to rely on food stamps, Medicaid and public housing in order to survive -- all paid for by taxpayers. If you are the Trump family, you got $885 million worth of tax breaks and subsidies for your family\'s housing empire that is built on racial discrimination. When Trump screams socialism, all of his hypocrisy will not be lost on the American people. Americans will know that he is attacking all that we take for granted: from Social Security to Medicare to veterans health care to roads and bridges to public schools to national parks to clean water and clean air. When Trump attacks socialism, I am reminded of what Dr. Martin Luther King, Jr. said,  \"This country has socialism for the rich, rugged individualism for the poor.\" And that is the difference between Donald Trump and me. He believes in corporate socialism for the rich and powerful. I believe in a democratic socialism that works for the working families of this country. What I believe is that the American people deserve freedom -- true freedom. Freedom is an often used word but it  \'s time we took a hard look at what that word actually means. Ask yourself: what does it actually mean to be free? Are you truly free if you are unable to go to a doctor when you are sick, or face financial bankruptcy when you leave the hospital? Are you truly free if you cannot afford the prescription drug you need to stay alive? Are you truly free when you spend half of your limited income on housing, and are forced to borrow money from a payday lender at 200 percent interest rates. Are you truly free if you are 70 years old and forced to work because you lack a pension or enough money to retire? Are you truly free if you are unable to go to attend college or a trade school because your family lacks the income? Are you truly free if you are forced to work 60 or 80 hours a week because you can\'t find a job that pays a living wage? Are you truly free if you are a mother or father with a new born baby but you are forced to go back to work immediately after the birth because you lack paid family leave? Are you truly free if you are a small business owner or family farmer who is driven out by the monopolistic practices of big business? Are you truly free if you are a veteran, who put your life on the line to defend this country, and now sleep out on the streets? To me, the answer to those questions, in the wealthiest nation on earth, is no, you are not free. While the Bill of Rights protects us from the tyranny of an oppressive government, many in the establishment would like the American people to submit to the tyranny of oligarchs, multinational corporations, Wall Street banks, and billionaires. It is time for the American people to stand up and fight for their right to freedom, human dignity and security. This is the core of what my politics is all about. In 1944, FDR proposed an economic bill of rights but died a year later and was never able to fulfil that vision. Our job, 75 years later, is to complete what Roosevelt started. That is why today, I am proposing a 21st Century Economic Bill of Rights. A Bill of Rights that establishes once and for all that every American, regardless of his or her income in entitled to: The right to a decent job that pays a living wage The right to quality health care The right to a complete education The right to affordable housing The right to a clean environment The right to a secure retirement Over the course of this election my campaign has been releasing -- and will continue to release -- detailed proposals addressing each of these yet to be realized economic rights. We will also address the attacks that are being launched each day against the civil rights and civil liberties of our people. And let me be absolutely clear: democratic socialism to me requires achieving political and economic freedom in every community. And let me also be clear, the only way we achieve these goals is through a political revolution -- where millions of people get involved in the political process and reclaim our democracy by having the courage to take on the powerful corporate interests whose greed is destroying the social and economic fabric of our country. At the end of the day, the one percent may have enormous wealth and power, but they are just the one percent. When the 99 percent stand together, we can transform society. These are my values, and that is why I call myself a democratic socialist. At its core is a deep and abiding faith in the American people to peacefully and democratically enact the transformative change that will create shared prosperity, social equality and true freedom for all. Thank you all very much for being here tonight and thank you for being part of a political revolution which will transform America. Thank you for being part of a campaign which is not only going to win the Democratic nomination, which is not only going to defeat Donald Trump, the most dangerous president in modern American history, but with your help is going to transform this country and, finally, create an economy and government which works for all Americans, and not just the one percent. Today, I want to welcome you to a campaign which says, loudly and clearly, that the underlying principles of our government will not be greed, kleptocracy, hatred and lies. It will not be racism, sexism, xenophobia, homophobia and religious bigotry. All of that is going to end. The principles of our government will be based on justice: economic justice, social justice, racial justice and environmental justice. Tonight, I want to welcome you to a campaign which tells the powerful special interests who control so much of our economic and political life that we will no longer tolerate the greed of Wall Street, corporate America and the billionaire class -- greed which has resulted in this country having more income and wealth inequality than any other major country on earth. No. We will no longer stand idly by and allow 3 people in this country to own more wealth than the bottom half of America while, at the same time, nearly 20 percent of our children live in poverty, veterans sleep out on the streets and seniors cannot afford their prescription drugs. We will no longer accept 46 percent of all new income going to the top 1 percent, while millions of Americans are forced to work 2 or 3 jobs just to survive and over half of our people live paycheck to paycheck, frightened to death about what happens to them financially if their car breaks down or their child becomes sick. Together, we are going to create a political system which is based on the democratic principles of one person - one vote - and end a corrupt system which allows billionaires to buy elections. Yes. We are going to overturn Citizens United and move to public funding of elections. Today, we fight for a political revolution. And tonight, I want to offer a very special thanks to the people of the great state of Iowa. In 2016, this is where the political revolution began. Thank you Iowa. When I first came here to campaign in 2015 not a whole lot of people knew who I was, nobody took our campaign seriously, and we were at 3 percent in the polls. Further, the ideas that we were talking about then were considered by establishment politicians and mainstream media to be  \"radical\" and  \"extreme\" - ideas, they said, that nobody in America would support. Raising the minimum wage to a living wage. Too radical. Guaranteeing health care to all as a right, not a privilege. Too radical. Creating up to 15 million jobs by rebuilding our crumbling infrastructure with a one trillion dollar investment. Too radical. Aggressively combatting climate change. Too radical. Reforming our broken criminal justice and immigration systems. Too radical. Not taking money from super PACs and the rich. Too radical. Ending the power of super delegates at the Democratic Convention. Too radical. Well, a funny thing happened in Iowa over that year. On Caucus Night we didn\'t win 3 percent of the vote, we won 50 percent of the vote and half of the pledged delegates. And that great start in Iowa led us to win victories in 22 states around the country, 13 million votes, over 1700 delegates at the convention and more votes from young people - black, white, Latino, Asian American and Native American - than Trump and Clinton combined. And, by the way. Those ideas that we talked about 4 years years ago that seemed so very radical at that time. Well, today, virtually all of those ideas are supported by a majority of the American people and have overwhelming support from Democrats and independents - and they\'re ideas that Democratic candidates for president to school board are now supporting. So Iowa, you helped begin the political revolution in 2016 and, with your help on this campaign, we are going to complete what we started here. We\'re going to turn our vision and our progressive agenda into reality. Today, as we launch our campaign here in Iowa, we say to the private health insurance companies, whether you like it or not, the United States will join every other major country on earth and guarantee healthcare to all people as a right. All Americans are entitled to go to the doctor when they\'re sick and not go bankrupt after staying in the hospital. We will no longer accept the absurdity of paying almost twice as much per capita on health care, while we have a lower life expectancy and worse health care outcomes than many other countries. The goal of health care must be to provide quality care to all in a cost effective way, not tens of billions in profits for the insurance companies and outrageous compensation packages for CEOs. In 2017, the top 65 healthcare CEO\'s made $1.7 billion in compensation including: $83.2 million to David Wichmann, the CEO of UnitedHealth Group and 58.7 million to Mark Bertolini, the CEO of Aetna. We need a health care system that invests in disease prevention, doctors, nurses, dentists and rural clinics. We don\'t a system which makes insurance companies and their CEOs super rich. Yes. We will pass a Medicare for all single-payer program. Health care is a right. And, by the way, our legislation improves health care for seniors by providing coverage for dental care, hearing aids and eye glasses. Today, we say to the pharmaceutical industry, that you will no longer charge the American people the highest prices in the world for prescription drugs, the result being that one out of five Americans cannot afford the prescriptions their doctors prescribe. Seniors in this country should not have to cut their pills in half. The outrageous greed of the pharmaceutical industry is going to end. We are going to lower prescription drug prices in this country. Today, we say to Walmart, the fast food industry and other low wage employers: Stop paying your employees starvation wages.. Yes. We are going to raise the federal minimum wage to a living wage - $15 an hour. Nobody who works 40 hours a week in this country should live in poverty. And yes. We\'re going to make it easier for people to join unions, not harder. Four years ago, when we talked about the idea of a $15 an hour minimum wage, it seemed like an impossible dream. Well, since then, I\'m happy to tell you that 5 states have passed $15 an hour legislation and, just yesterday, the U.S. House Committee on Labor and Education reported out a bill that will raise the federal minimum wage from $7.25 an hour to $15 an hour. And, I believe, that bill will pass the full House within the month. And by the way. Today we say to corporate America that artificial intelligence and robotics are not going to be used just to throw workers out on the street. This exploding technology must serve human needs, not just corporate profits. Today we say to the American people that we will rebuild our crumbling infrastructure: our roads, our bridges, our rail system and subways, our airports, our water systems and wastewater plants - and when we do that we create up to 13 million good paying jobs. And let\'s be clear. When I talk about infrastructure and clean water we\'re talking about strengthening clean water laws so that corporate polluters stop poisoning the drinking water that communities in Iowa and across the country rely on. Today we say to the parents in this country that you and your kids deserve quality, affordable childcare. The children are our future, and they deserve the best possible head start in life with a high quality, universal pre-K program. Today, we say to our young people that we want you to get the best education that you can, regardless of the income of your family. Good jobs require a good education. That is why we are going to make public colleges and universities tuition free, and substantially lower the outrageous level of student debt that currently exists. America once had the best educated workforce in the world, and we are going to make that happen again. Today, we say to our senior citizens, that we understand that you cannot live in dignity when you are trying to survive on $13,000 or $14,000 a year in Social Security benefits. My Republican colleagues want to cut Social Security but we have some bad news for them. We\'re not going to cut Social Security benefits. We\'re going to expand them. Today, we say to Donald Trump and the fossil fuel industry that climate change is not a hoax but is an existential threat to our country and the entire planet - and we intend to transform our energy system away from fossil fuel and into energy efficiency and sustainable energy and, in the process, create millions of good paying jobs. All of us have a moral responsibility to make certain that the planet we leave to our children and grandchildren is healthy and habitable. Today, we say to the prison-industrial-complex that we are going to bring about real criminal justice reform. We are going to end the international embarrassment of having more people in jail than any other country on earth. Instead of spending $80 billion a year on jails and incarceration, we are going to invest in jobs and education for our young people. No more private prisons and detention centers. No more profiteering from locking people up. No more  \"war on drugs. \" No more keeping people in jail because they\'re too poor to afford cash bail. And by the way, when we talk about criminal justice reform, we\'re going to change a system in which tens of thousands of Americans every year get criminal records for possessing marijuana, but not one major Wall Street executive went to jail for destroying our economy in 2008 as a result of their greed, recklessness and illegal behavior. No. They didn\'t go to jail. They got a trillion-dollar bailout. Today, we say to the American people that instead of demonizing the undocumented immigrants in this country, we\'re going to pass comprehensive immigration reform and provide a path toward citizenship. We\'re going to provide legal status to the 1.8 million young people eligible for the DACA program, and develop a humane border policy for those who seek asylum. No more snatching babies from the arms of their mothers. Today, we say to the top 1 percent and the large profitable corporations in this country - people who have never had it so good -- that under a Bernie Sanders administration we\'re going to end the massive tax breaks and loopholes that you currently enjoy. We will no longer accept the absurd situation where large corporations like Amazon, Netflix and General Motors pay nothing in federal income taxes after raking in billions in profits. We will no longer tolerate the situation in which the wealthy and large corporations stash billions in tax havens throughout the world. Yes, the wealthy and multi-national corporations in this country will start paying their fair share of taxes. We are going to end austerity for working families, and provide some austerity for large, multi-national corporations. Today, we say to the military-industrial-complex that we will not continue to spend $700 billion a year on the military - more than the next ten nations combined. We\'re going to invest in affordable housing, we\'re going to invest in public education, we\'re going to invest in rebuilding our crumbling infrastructure - not more nuclear weapons and never-ending wars. Brothers and sisters: We\'re going to win this election not because we have a super PAC funded by billionaires. We\'re going to win this election because we will put together the strongest grassroots coalition in the history of American politics. Donald Trump wants to divide us up by the color of our skin, our country of origin, our gender, our religion and our sexual orientation. We are going to do exactly the opposite. We are going to bring our people together -- black, white, Latino, Native American, Asian American, gay and straight, young and old, men and women, native born and immigrant. We are going to bring our people together for an unprecedented grassroots effort, which, I am happy to tell you, already has over one million people signed up as volunteers. Brothers and sisters: As someone who represents Vermont, one of the most rural states in the country, let me be very honest with you in saying that the U.S. Congress has, for too long, ignored the many crises facing rural America. In Iowa, in Vermont and all over this country, we have seen more and more young people leave the small towns they grew up in and love, not because they don\'t want to stay, but because there are fewer and fewer jobs that pay a living wage. We have seen schools, churches and community centers shut down, and once vibrant Main Streets become boarded up and deserted. In Vermont, Iowa and all across rural America, we have seen family farmers go out of business as the prices they receive for their products decline rapidly and large agri-business corporations and factory farming take over agriculture. We have seen rural hospitals and nursing homes shut down, and not enough doctors to provide the quality health care that rural American deserves. Tragically, instead of seeing good jobs, education and health care coming into our rural communities, we are far too often seeing despair and depression - and a terrible increase in suicide and opioid addiction. Brothers and sisters. We need policies for rural America that represent the needs of working people and farmers, not agri-business and multi-national corporations. Among many other things that need to be done is for the federal government to enforce anti-trust laws, and I will appoint an Attorney General who will do just that. It is not acceptable to me that the top four packing companies control more than 80 percent of the beef market, 63 percent of the pork market, and 53 percent of the chicken market. And these numbers understate the situation. In many communities, there really is only one buyer, which means food producers are at their mercy. They must use that corporation\'s feed and livestock, they must accept that corporation\'s costs, and they must accept that corporation\'s lower and lower payment rates. In many cases, the farmer doesn\'t even own the livestock or supplies -- they are effectively contract employees who are forced to lease everything, and then get paid an inadequate wage for their very hard work. With the federal government not enforcing antitrust laws, we have seen mergers like the Bayer-Monsanto approved, giving the two largest conglomerates 78 percent of the corn seed market. Further, instead of protecting family owned farms, federal support for agriculture is skewed toward huge farms. The top 10 percent of farms currently receive 77 percent of all subsidies. The time is long overdue for the U.S. government to stand with rural America, and that is exactly what I do. Brothers and sisters. Over the last two years, and before, you and I and millions of Americans have stood up and fought for justice in every part of our society. And we\'ve had some successes. Together, as billionaires and large corporations have attacked unions, destroyed pensions, deregulated the banks, and slashed wages, we have succeeded in raising the minimum wage to $15 in states and cities across the country. And forced large corporations like Amazon and Disney to do the same. And we have supported teachers who successfully stood up for their kids in strike after strike after strike. Together, as the forces of militarism have kept us engaged in unending wars, we have stood arm-in-arm to fight back. For the first time in 45 years, we have utilized the War Powers Act to move us forward in ending the horrific Saudi-led war in Yemen. Together, as so many of our young people have received criminal records for nonviolent offenses, we have fought to end the war on drugs, and have seen state after state decriminalize marijuana, and have seen communities expunge the criminal records of those arrested on these charges. Let\'s be honest: while we have won some victories, our struggles have not always been successful. But I am here to tell you, that because of all the work we have done, we are now on the brink of winning not just an election, but transforming our country. And let me tell you what that means. When We are in the White House, we will enact a federal jobs guarantee, to ensure that everyone is guaranteed a stable job. There is more than enough work to be done in this country. Let\'s do it. When We are in the White House we will not only end the decline of rural America, but attack the problem of urban gentrification and build the affordable housing we desperately need all across this country. When We are in the White House, we will move aggressively to end the epidemic of gun violence in this country and pass the common sense gun safety legislation that the overwhelming majority of Americans want. People who should not have guns, will not have guns. When We are in the White House, we are going to address not only the disparities of wealth and income that exist overall in our nation, but we will address the racial disparities of wealth and income. We are going to root out institutional racism wherever it exists. Not only will we end voter suppression, we are going to make it easier for people to vote - not harder. When We are in the White House, we are going to protect a woman\'s right to control her own body. That is her decision, not the government\'s. Make no mistake about it, this struggle is not just about defeating Donald Trump. This struggle is about taking on the incredibly powerful institutions that control the economic and political life of this country. And I\'m talking about Wall Street, the insurance companies, the drug companies, the military-industrial complex, agri-business, the prison-industrial complex, the fossil fuel industry and a corrupt campaign finance system that enables billionaires to buy elections. These powerful special interests are going to spend a lot of money to try to defeat us. But we have something they don\'t have: the power of the people. Brothers and sisters: We have an enormous amount of work in front of us. But this what I believe. If we stand together, if we don\'t allow Trump and his friends to divide us up; If we stand together as black and white, Latino, Asian American and Native American. If we stand together as gay and straight, men and women, native born and immigrant. If we stand together as rural and urban - north, south, east and west. If we understand that there really is no such thing as blue state or red state, but states throughout the country where working people are struggling to survive. If we stand together, this country has an extraordinary future. Let\'s make it happen. Thank you all very much for being here today and thank you for being part of a political revolution which will transform America. Thank you for being part of a campaign which is not only going to win the Democratic nomination, which is not only going to defeat Donald Trump, the most dangerous president in modern American history, but with your help is going to transform this country and, finally, create an economy and government which works for all Americans, and not just the one percent. Today, I want to welcome you to a campaign which says, loudly and clearly, that the underlying principles of our government will not be greed, hatred and lies. It will not be racism, sexism, xenophobia, homophobia and religious bigotry. That is going to end. The principles of our government will be based on justice: economic justice, social justice, racial justice and environmental justice. Today, I want to welcome you to a campaign which tells the powerful special interests who control so much of our economic and political life that we will no longer tolerate the greed of corporate America and the billionaire class -- greed which has resulted in this country having more income and wealth inequality than any other major country on earth. No. We will no longer stand idly by and allow 3 people in this country to own more wealth than the bottom half of America while, at the same time, over 20 percent of our children live in poverty, veterans sleep out on the streets and seniors cannot afford their prescription drugs. We will no longer accept 46 percent of all new income going to the top 1 percent, while millions of Americans are forced to work 2 or 3 jobs just to survive and over half of our people live paycheck to paycheck, frightened to death about what happens to them financially if their car breaks down or their child becomes sick. Today, we fight for a political revolution. We say to the private health insurance companies, whether you like it or not, the United States will join every other major country on earth and guarantee healthcare to all people as a right. All Americans are entitled to go to the doctor when they\'re sick and not go bankrupt after staying in the hospital. Yes. We will pass a Medicare for all single-payer program. Today, we say to the pharmaceutical industry, that you will no longer charge the American people the highest prices in the world for prescription drugs, the result being that one out of five Americans cannot afford the prescriptions their doctors prescribe. The outrageous greed of the pharmaceutical industry is going to end. We are going to lower prescription drug prices in this country. Today, we say to WalMart, the fast food industry and other low wage employers: Stop paying your employees starvation wages.. Yes. We are going to raise the federal minimum wage to a living wage -- $15 an hour. Nobody who works 40 hours a week in this country should live in poverty. And yes. We\'re going to make it easier for people to join unions, not harder. And by the way. Today we say to corporate America that artificial intelligence and robotics are not going to be used just to throw workers out on the street. This exploding technology must serve human needs, not just corporate profits. Today we say to the American people that we will rebuild our crumbling infrastructure: our roads, our bridges, our rail system and subways, our water systems and wastewater plants and our airports -- and when we do that we create up to 13 million good paying jobs. Today we say to the parents in this country that you and your kids deserve quality, affordable childcare. The children are our future, and they deserve the best possible head start in life with a high quality, universal pre-K program. Today, we say to our young people that we want you to get the best education that you can, regardless of the income of your family. Good jobs require a good education. That is why we are going to make public colleges and universities tuition free, and substantially lower the outrageous level of student debt that currently exists. America once had the best educated workforce in the world, and we are going to make that happen again. Today, we say to our senior citizens, that we understand that you cannot live in dignity when you are trying to survive on $13,000 or $14,000 a year in Social Security benefits. My Republican colleagues want to cut Social Security but we have some bad news for them. We\'re not going to cut Social Security benefits. We\'re going to expand them. Today, we say to Donald Trump and the fossil fuel industry that climate change is not a hoax but is an existential threat to our country and the entire planet -- and we intend to transform our energy system away from fossil fuel and into energy efficiency and sustainable energy and, in the process, create millions of good paying jobs. All of us have a moral responsibility to make certain that the planet we leave to our children and grandchildren is healthy and habitable. Today, we say to the prison-industrial-complex that we are going to bring about real criminal justice reform. We are going to end the international embarrassment of having more people in jail than any other country on earth. Instead of spending $80 billion a year on jails and incarceration, we are going to invest in jobs and education for our young people. No more private prisons and detention centers. No more profiteering from locking people up. No more \"war on drugs.” No more keeping people in jail because they\'re too poor to afford cash bail. And by the way, when we talk about criminal justice reform, we\'re going to change a system in which tens of thousands of Americans every year get criminal records for possessing marijuana, but not one major Wall Street executive went to jail for destroying our economy in 2008 as a result of their greed, recklessness and illegal behavior. No. They didn\'t go to jail. They got a trillion-dollar bailout. Today, we say to the American people that instead of demonizing the undocumented immigrants in this country, we\'re going to pass comprehensive immigration reform and provide a path toward citizenship. We\'re going to provide legal status to the 1.8 million young people eligible for the DACA program, and develop a humane border policy for those who seek asylum. No more snatching babies from the arms of their mothers. Today, we say to the top 1 percent and the large profitable corporations in this country -- people who have never had it so good -- that under a Bernie Sanders administration we\'re going to end the massive tax breaks and loopholes that you currently enjoy. We will no longer accept the absurd situation where large corporations like Amazon, Netflix and General Motors pay nothing in federal income taxes after raking in billions in profits. We will no longer tolerate the situation in which the wealthy and large corporations stash billions in tax havens throughout the world. Yes, the wealthy and multi-national corporations in this country will start paying their fair share of taxes. We are going to end austerity for working families, and provide some austerity for large, multi-national corporations. Today, we say to the military-industrial-complex that we will not continue to spend $700 billion a year on the military -- more than the next ten nations combined. We\'re going to invest in affordable housing, we\'re going to invest in public education, we\'re going to invest in rebuilding our crumbling infrastructure -- not more nuclear weapons and never-ending wars. Brothers and sisters: We\'re going to win this election not because we have a super PAC funded by billionaires. We\'re going to win this election because we will put together the strongest grassroots coalition in the history of American politics. Donald Trump wants to divide us up by the color of our skin, our country of origin, our gender, our religion and our sexual orientation. We are going to do exactly the opposite. We are going to bring our people together -- black, white, Latino, Native American, Asian American, gay and straight, young and old, men and women, native born and immigrant. We are going to bring our people together for an unprecedented grassroots effort, which, I am happy to tell you, already has over one million people signed up as volunteers. If I might, as I return here to Brooklyn, let me take a moment to become personal. As we launch this campaign for president, you deserve to know where I come from -- because family history heavily influences the values that we adopt as adults. I was born and raised a few miles away from here, in a three-and-a-half room rent-controlled apartment. My father was a paint salesman who worked hard his entire life, but never made much money. My mother raised my brother and me. I learned a great deal about immigration as a child because my father came to this country from Poland at the age of 17, without a nickel in his pocket. He came to escape the crushing poverty that existed in his community, and to escape widespread anti-Semitism. And, it was a good thing that he left Poland when he did because virtually his entire family there was wiped out by Nazi barbarism. I am not going to tell you that I grew up in a home of desperate poverty. That would not be true. But what I will tell you is that coming from a lower middle class family I will never forget how money -- or really lack of money -- was always a point of stress in our home. My mother\'s dream was that someday our family would move out of that rent-controlled apartment to a home of our own. That dream was never fulfilled. She died young while we were still living in that rent-controlled apartment. My experience as a kid, living in a family that struggled economically, powerfully influenced my life and my values. Unlike Donald Trump, who shut down the government and left 800,000 federal employees without income to pay the bills, I know what it\'s like to be in a family that lives paycheck to paycheck. Now it\'s true: I did not have a father who gave me millions of dollars to build luxury skyscrapers, casinos and country clubs. I did not come from a family that gave me a $200,000 allowance every year beginning at the age of 3. As I recall, my allowance was 25 cents a week. But I had something more valuable: I had the role model of a father who had unbelievable courage in journeying across an ocean, with no money in his pocket, to start a new and better life. I did not come from a family of privilege that prepared me to entertain people on television by telling workers: \"You\'re fired.” I came from a family who knew all too well the frightening power employers can have over everyday workers. I did not come from a politically connected family whose multinational corporation got special tax breaks and subsidies. I came from a family where my parents paid their taxes and understood the important role that government plays in a democracy. I did not come from a family that could afford to send my brother and me to an elite boarding school. In fact, I was educated in high quality public schools here in Brooklyn and began the first year of my college life on this very campus. I should also mention that my brother graduated from Brooklyn College. Having attended an excellent public college that was then virtually tuition free and living in a rent-controlled apartment, I can assure you that my family believed that government in a democratic society had a very important role to play in protecting working families. I did not come from a family that taught me to build a corporate empire through housing discrimination. I protested housing discrimination, was arrested for protesting school segregation, and attended Reverend Dr. Martin Luther King\'s March on Washington for jobs and freedom. Brothers and sisters. Over the last two years, and before, you and I and millions of Americans have stood up and fought for justice in every part of our society. And we\'ve had some successes. Together, as billionaires and large corporations have attacked unions, destroyed pensions, deregulated the banks, and slashed wages, we have succeeded in raising the minimum wage to $15 in states and cities across the country. And forced large corporations like Amazon and Disney to do the same. And we have supported teachers who successfully stood up for their kids in strike after strike after strike. Together, as the forces of militarism have kept us engaged in unending wars, we have stood arm-in-arm to fight back. For the first time in 45 years, we have utilized the War Powers Act to move us forward in ending the horrific Saudi-led war in Yemen. Together, as so many of our young people have received criminal records for nonviolent offenses, we have fought to end the war on drugs, and have seen state after state decriminalize marijuana, and have seen communities expunge the criminal records of those arrested on these charges. Let\'s be honest: while we have won some victories, our struggles have not always been successful. But I am here to tell you, that because of all the work we have done, we are now on the brink of winning not just an election, but transforming our country. And let me tell you what that means. When We are in the White House, we will enact a federal jobs guarantee, to ensure that everyone is guaranteed a stable job. There is more than enough work to be done in this country. Let\'s do it. When We are in the White House we will attack the problem of urban gentrification and build the affordable housing our nation desperately needs. When We are in he White House we will end the decline of rural America, reopen those rural hospitals that have been closed, and make sure that our young people have decent jobs so they do not have to leave the towns they grew up in and love. When We are in he White House, we will move aggressively to end the epidemic of gun violence in this country and pass the common sense gun safety legislation that the overwhelming majority of Americans want. People who should not have guns, will not have guns. When We are in the White House, we are going to address not only the disparities of wealth and income that exist overall in our nation, but we will address the racial disparities of wealth and income. We are going to root out institutional racism wherever it exists. Not only will we end voter suppression, we are going to make it easier for people to vote -- not harder. When We are in the White House, we are going to protect a woman\'s right to control her own body. That is her decision, not the government\'s. Make no mistake about it, this struggle is not just about defeating Donald Trump. This struggle is about taking on the incredibly powerful institutions that control the economic and political life of this country. And I\'m talking about Wall Street, the insurance companies, the drug companies, the military-industrial complex, the prison-industrial complex, the fossil fuel industry and a corrupt campaign finance system that enables billionaires to buy elections. Brothers and sisters: We have an enormous amount of work in front of us. And this what I believe. If we stand together, if we don\'t allow Trump and his friends to divide us up, there is nothing we cannot accomplish. This country has an extraordinary future. Let\'s make it happen. Thank you."
  
  let lengthOfOutput = 160;
  let textList = text.split(" ")
  newSentence = [];
  let wordCount = 0;
  let n = 2;
  let wordMap = {
  
  }
  
  /*for (let i = 0; i < textList.length; i++){
      let word = textList[i];
      let wordBefore = textList[i-1];
      if (word in wordMap){
          nextWords = wordMap[word]
          nextWords.push(textList[i+1])
      }else{
          wordMap[word] = [textList[i+1]]
      }
      if (wordBefore != null){    
              if(/[A-Z]/.test(word[0]) && wordBefore[wordBefore.length-1] === "."){
                  newSentence.push(word)
              }
          }
  }*/
  
  for (let i = 0; i < textList.length; i++){
      if (textList [i+3] != null){
          words = textList[i] + " " + textList[i+1]
          wordsList = [textList[i], textList[i+1]]
          wordBefore = textList[i-1]
          if (words in wordMap){
              nextWords = wordMap[words]
              nextWords.push(textList[i+2])
              
          }else{
              wordMap[words] = [textList[i+2]]
          }
          if (wordBefore != null){    
              if(/[A-Z]/.test(words[0]) && wordBefore[wordBefore.length-1] === "."){
                  newSentence.push(wordsList)
              }
          }
      }
  }
  let wordDiv = document.getElementById('text-div');
  
  let fifteen = document.getElementById('15-an-hour');
  let onePercent = document.getElementById('one-percent');
  let billionaires = document.getElementById('billionaires');
  let random = document.getElementById('random');
  let seedWord;
  let lastWord;
  let seedWordList;
  
  document.getElementById('button').onclick = function(){
      if (fifteen.checked){
          seedWord = "$15 an"
          lastWord = "an"
       }else if (onePercent.checked){
          seedWord = '1 percent';
          lastWord = 'percent';
      
       }else if(billionaires.checked){
          seedWords = [['billionaire', 'class'], ['billionaires', 'own'], ['billionaires', 'and'], ['billionaires', 'with']];
          seedWordList = seedWords[Math.floor(Math.random() * seedWords.length)]
          seedWord = seedWordList[0] + ' ' + seedWordList[1];
          lastWord = seedWordList[1];
       }else if(random.checked){
          seedWordList = newSentence[Math.floor(Math.random() * newSentence.length)];
          seedWord = seedWordList[0] + ' ' + seedWordList[1];
          lastWord = seedWordList[1];
       } else{
           console.log("error")
       }    
      wordDiv.innerHTML = ''
      console.log(seedWord)
  
      words = Object.keys(wordMap)  
      capitalizeSeedWord = seedWord[0].toUpperCase() + seedWord.substring(1)
      seedText = document.createTextNode(capitalizeSeedWord + " ")
      wordDiv.appendChild(seedText)
  
      for (let i = 0; i < lengthOfOutput; i++){
          wordChoices = wordMap[seedWord]
          console.log(wordChoices.length)
          randInt = Math.floor(Math.random() * wordChoices.length)
          word = wordChoices[randInt]
          divText = document.createTextNode(word + " ")
          wordDiv.appendChild(divText)
          seedWord = lastWord + ' ' + word
          lastWord = word
          wordCount ++
      }
      divText = document.createTextNode(".")
      wordDiv.appendChild(divText)
  }