Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

complete-cloud

A simple world cloud visualization that shows most common google's auto completion for questions about countries.

why does...

Click on any tag to see queries:

why does expanded

Note: If you are on mobile - touch and hold the tag for two seconds to see completions.

How it's made?

For each country I query Google for autocompletions:

why does animated

Then each suggestion is recorded and stored into json format:

{
  "state": "Albania",
  "suggestions": [
    "why does albania<b> hate greece</b>",
    "why does albania<b> love america</b>",
    "why does albania<b> have a bad reputation</b>",
    "why does albania<b> hate serbia</b>",
    "..."
  ]
}

NOTE: This extraction work is automated and managed by anvaka/wpg-data repository. I'm trying to update data on a daily basis.

All words between <b></b> tags are extracted. I use world cloud layout algorithm to determine position of a word on the page.

Common words are excluded. You can find the list of excluded words here

Rendering is done entirely in SVG. You can pan and zoom the image to see it at infinite precision:

  • Use mouse wheel or pinch zoom to zoom in/zoom out. You can also use keyboard keys -, + to do the same.
  • With left mouse button (or one finger on mobile diveces) you can drag the area. Keyboard arrows should also do the same.

NOTE: The SVG interaction is managed by anvaka/panzoom module.

See also

If you want to explore Google's auto completion tags, please refer to anvaka/what-people-google repository.

Local build

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

License

MIT

About

word cloud of google's autocompletions

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages