Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.25 KB

File metadata and controls

36 lines (28 loc) · 1.25 KB

Getting to Philosophy

Motivation

If a Wikipedia user goes from page to page by clicking the first ordinary link in each article, they usually find themselves at the 'Philosophy' article at some point. This phenomenon even has its own Wikipedia page.

Here's an example chain:

https://en.wikipedia.org/wiki/Denmark ->
https://en.wikipedia.org/wiki/Danish_language ->
https://en.wikipedia.org/wiki/North_Germanic_languages ->
https://en.wikipedia.org/wiki/Germanic_languages ->
https://en.wikipedia.org/wiki/Indo-European_languages ->
https://en.wikipedia.org/wiki/Language_family ->
https://en.wikipedia.org/wiki/Language ->
https://en.wikipedia.org/wiki/Communication ->
https://en.wikipedia.org/wiki/Information ->
https://en.wikipedia.org/wiki/Abstraction ->
https://en.wikipedia.org/wiki/Rule_of_inference ->
https://en.wikipedia.org/wiki/Philosophy_of_logic ->
https://en.wikipedia.org/wiki/Philosophy ->

How to run

pip install -r requirements.txt
python philosophy.py # To expose the chain starting from a random page

python philosophy.py -h # To inspect more options