Giter Site home page Giter Site logo

ideosorter / ideosorter.github.io Goto Github PK

View Code? Open in Web Editor NEW
76.0 3.0 25.0 3.17 MB

The ideosorter political quiz is a test that assigns you an ideology based on a flowchart as opposed to traditional methods via aproximations of bars or charts.

Home Page: https://ideosorter.github.io

License: MIT License

HTML 19.46% CSS 17.19% JavaScript 63.35%
html github-pages ideology-classification es2022 browser javascript

ideosorter.github.io's Introduction

Ideosorter

Ideosorter is a flowchart based interactive political quiz that attempts to bring a different approach to political quizzes.


Ideosorter 3 requirements

  • A browser that supports ECMAScript 2022, (the application requires promises, async/await, Array.prototype.at() and the fetch API (all latest versions of the common browsers, including Chromium based browsers(Chrome, Opera, Edge, Brave, etc...), Firefox and Safari)

How to run locally

To run locally you follow the following steps

  • Clone the repository git clone https://github.com/Ideosorter/ideosorter.github.io

  • Install a simple static webserver like npm serve

  • Open the localhost server in a browser

If you dont open the project via a webserver, and instead open the .html file in a browser using the file:// protocal, you might run into a problem with loading scripts and stylesheets because of CORS.


Contributing

Check the CONTRIBUTING.md file for intructions and guidelines on contributing to this project

ideosorter.github.io's People

Contributors

aurium avatar beiyanyunyi avatar domper59 avatar ejanerop avatar ideosorter avatar justlucdewit avatar kfatyuip avatar lenoreric avatar listerla avatar rootmelo92118 avatar theameliamay avatar theghostofinky avatar tomaasci avatar vizdun avatar weltre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ideosorter.github.io's Issues

Some suggestions about Chinese translation

Result councom

  • en: Council Communism is an ideology that deems that a sucessful socialist society must be one managed by workers' councils and not political parties"
  • zhcn: 议会共产主义认为,成功的社会主义社会应当由工人议会来运行

The word "Council" should be "委员会", not "议会".

"议会" in Chinese means Parliament. "Council" should probably be translated as "委员会" according to the description. I think a "socialist society managed by worker's council and not party" is radical and revolutionary and is against parliamentalism. "议会共产主义" sounds like social democry or democratic socialism.

Question rev_ed

  • en: Should there be a revolutionary party to teach the masses during and after the revolution?
  • zhcn: 是否应该有一个革命党,在革命期间和革命后对群众进行灌输?

The word "Teach" is translated as "灌输", and I think "教育"、"教导" is better.

"灌输“ and "the theroy of 灌输"(灌输论) is a wrong translation to Lenin's theory about giving the class consciousness to the working class by the vanguard party (probably made by Chinese translators in 1950s). "灌输" has the meaning of putting something into someone's brain forcefully, kinda like brainwashing. I think it's not correct for translating Lenin's theroy in the first place, and it's not correct for translating "Teach".

So it's better to be like "是否应该有一个革命党,在革命期间和革命后教导群众?".

Question aboveall and aboveall2

  • en: Do you think that the nation should be of most importance above all?
  • zhcn: 国家的重要性应该高于一切吗?

The word "Nation" should be translated as 民族, not 国家.

In Chinese, State, Nation, Country were all translated as "国家", which is very confusing and wrong. In Chinese "国家" may indicates one of 2 things. The first thing is a country, like German and China. The other thing is the state, which in Chinese is closely related to the government. "民族" mainly refers to nation. For example, the Nazi‘s word German nation, was translated as 德意志民族 (德意志 is the transliteration of Deutschland). The word nation-state was translated as 民族国家, 民族 for nation and 国家 for state. (It could be translated as 国家 probably is because the Chinese scolors and translators in late 1800s and early 1900s found all main countries were nation-states (in their point of view), so they set this as default for the language.) This question is placed after the respondents approving the importance of the state and it deffers nazbol and ml/statesoc, so logically it's asking if something within the state is of most importance above all.

So it'e better to be like 民族的重要性应该高于一切吗?

Some things I encountered when reading the questions

Disclaimer: I'm a native Chinese speaker, and I've been learning English as a foreign language. I don't have much education in political studies thus it's likely that I misunderstand some terms in the field.

Question vanguard_ed - Should the role of this vanguard party be only to educate? As opposed to being some form of political leadership.

when I read this question I feel a tiny bit of confusion with the yes-or-no options; I think having, say, "educate" and "lead" buttons as options will make me confuse less. The Chinese translation of this question makes the yes-no (which is which?) kinda more confusing imo.

Questions socinone and aboveall1 - Do you think that socialism can be achieved within one nation? and Do you think that the nation should be of most importance above all?

When I read the questions, I felt that the "nation" in aboveall1 could mean either the general concept of "nation", or the one socialist nation mentioned in socinone, and I'm wondering which it's supposed to be. (Maybe I'm just bad at parsing language?) (don't tell me "questions don't reference each other" because they do, see the two questions below marx)

Polyfill for Array.prototype.at()

Considering the readme mentions that Array.prototype.at() doesnt work on safari, it would be a good idea to add a polyfill for this method, so that it would work on safari and that part of the readme can be removed

this polyfill should work:

function at(n) {
	// ToInteger() abstract op
	n = Math.trunc(n) || 0;
	// Allow negative indexing from the end
	if (n < 0) n += this.length;
	// OOB access is guaranteed to return undefined
	if (n < 0 || n >= this.length) return undefined;
	// Otherwise, this is just normal property access
	return this[n];
}

const TypedArray = Reflect.getPrototypeOf(Int8Array);
for (const C of [Array, String, TypedArray]) {
    Object.defineProperty(C.prototype, "at",
                          { value: at,
                            writable: true,
                            enumerable: false,
                            configurable: true });
}

Based on this: https://github.com/tc39/proposal-relative-indexing-method#polyfill

Wording on Revolutionary Party question

After answering that workers should control the means of production (the word 'own' is used), users are presented with:

"Should there be a revolutionary party to teach the masses during and after the revolution?"

Answering yes puts you on the path for Bordigism and De Leonism, while answering no puts you on the path towards Council Communism and Situationism. The goal seems to be differentiating on whether the user agrees with the party ************, whether the working class should be organized into a formal party to advance their demands and theoretical development.

Neither Bordiga nor De Leon considered a revolutionary party to be a part of communist society. They consider the party to be an organ of the working class for the purpose of achieving communism. After the revolution, the party would be unnecessary as the class conflict would be resolved.

The question could read "Should the working classes be organized into a revolutionary party?" and discard the nonsense about 'teaching the masses'.

Source: https://libcom.org/article/bordiga-versus-pannekoek-antagonism-0

Some things I encountered when reading the Chinese translation of questions

Disclaimer: I'm a native Chinese speaker, and I've been learning English as a foreign language. I don't have much education in political studies thus it's likely that I misunderstand some terms in the field.

Question private_property

  • English: Should Private Property exist?
  • Chinese: 生产资料私有制应当存在吗?
  • literal back-translation: Should private ownership of means of production exist?

The term in question, 生产资料, has a word-by-word meaning of "production material", and looking it up gives "means of production". To me that sounds different from "property" - property sounds more general (basically anything one can own) while means of production sounds like something you produce stuff with (a pile of iron sounds like some "means of production" while my house doesn't sound like some of those). In question distributism, the "private property" is more intuitively and literally translated as "私有财产".

Question scope_of_government1

  • English: Should the scope of government be limited?
  • Chinese: 政府规模应当被限制吗?
  • literal back-translation: Should the scale of government be limited?

"规模" can be translated back into "scope" according to google, but when I read it, I was thinking of how big it is (size, scale), not what / how much stuff it deals with (scope, extent).

edit: #33 4dc3f23 fixed this

Theocracy flag

Why does the theocracy flag have the Unitarian logo on it? (AKA the flaming margarita). Say what you will about Unitarians, they are unlikely to establish a theocracy, how about something with a cross?

Proposing hacktoverfest tag

Hi, it would be great if i could use this repository for hacktoberfest (https://hacktoberfest.com/), then i could help do some pull requests on this repository.

but for that you would need to add the 'hacktoberfest' tag to the repository

"Exporting revolution"

Marxist-Leninists don't believe in exporting of the revolution, below is an interview with Stalin:

Howard: Does this, your statement, mean that the Soviet Union has to any degree abandoned its plans and intentions for bringing about world revolution?

Stalin: We never had such plans and intentions.

Howard: You appreciate, no doubt, Mr. Stalin, that much of the world has long entertained a different impression.

Stalin: This is the product of a misunderstanding.

Howard: A tragic misunderstanding?

Stalin: No, a comical one. Or, perhaps tragicomic. You see, we Marxists believe that a revolution will also take place in other countries. But it will take place only when the revolutionaries in those countries think it possible, or necessary. The export of revolution is nonsense. Every country will make its own revolution if it wants to, and if it does not want to, there will be no revolution. For example, our country wanted to make a revolution and made it, and now we are building a new, classless society. But to assert that we want to make a revolution in other countries, to interfere in their lives, means saying what is untrue, and what we have never advocated.

I've rewritten this in React and TypeScript.

Here is my repo: https://github.com/lixiang810/Ideosorter-React

Code copied or modified from this project is licensed under the MIT license, while code I wrote out myself is licensed under the AGPLv3 license.

The advantages of this repo are as follows:

  • The answer process uses the history api, so the user can go back to the previous page during the test to redo the previous question.
  • The code uses TypeScript, which improves readability and makes maintenance and expansion easy.
  • The data is organized using the array method, thus avoiding the problems associated with overly dynamic typing.
  • The project uses eslint and prettier to ensure consistent code style.
  • This is a Single Page App, the user does not need to repeatedly load pages.
  • This will be a progressive web app, where the user loads once and then no longer needs to request content from the server.

Reword the "conditional land ownership" question

I think the current question is unclear, I wasn't able to find anything by googling "conditional land ownership" and I didn't realize the question is related to Georgism/LVT until I checked the result tree

Improve i18n

The i18n is more complex than needed and too fragile. A page may crash if a lang file is incomplete. Also the ideology tree is repeated on each lang, witch may cause crashes and different results.

If you agree I can solve this issue.

Throws errors when entering question page

图片

This is caused by the lack of a comma in one (or more) lines of code.

图片

BTW, I'm trying to rewrite this project in React so as to increase its scalability and maintainability.

A advice

I'm interested with your program, but i wondering if i can know how each result is derivated.
Maybe you can make a doc that shows what exact choice will lead to what result,
so i can learn the difference bewteen each ideo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.