duckduckgo / zeroclickinfo-fathead

DuckDuckGo Instant Answers based on keyword data files
https://duckduckhack.com/
Other
318 stars 365 forks source link

Python Suggestion: Improve Coverage with further redirects #765

Closed pjhampton closed 7 years ago

pjhampton commented 7 years ago

Description

This Fathead is awesome, but based on the unanswered query data it's not triggering for a lot of searches. We want to see if updating the redirects manually in the cover directory will improve coverage for the Python language space which can be viewed on the forum.

Examples

Notice the query on the left, and the article to redirect to on the left. That's what we need to do for the below list. This can be done manually!

align center html, text-align
align in center html, text-align
center align html, text-align
css font align, text-align
center align image, text-align
center font css, text-align
background images, background-image
background linear gradient, linear-gradient
css font bold, font-weight
css body font, font-family

The List

class 
classes
class __str__ 
cpickle 
csv quote 
csv read 
dict to json 
dict get 
dicts in 
elif 
enum list 
for loop in 
if else 
call process 
__add__ 
__builtin__ 
__dict__ 
__doc__ 
__hash__ 
__import__ 
__nonzero__ 
__version__ 
datetime.datetime.strptime 
datetime.datetime 
datetime tzinfo 
datetime to timestamp 
datetime tzinfo 
datetime without hour 
AND 
AND && 
assert statement 
byte array 
bytearray 
def
file open 
file write 
format string 
glob 
lambda
logging 
multithreading 
next
object
os module 
os mkdir
os.environ 
os.chdir

Steps to recreate

You can get the full list of articles with this perl script which can be run as ./get_article_titles.pl python

Get Started

Resources


Instant Answer Page: https://duck.co/ia/view/python

mustang25 commented 7 years ago

@pjhampton I'd be interested in picking this project up.

pjhampton commented 7 years ago

Thanks so much, @mustang25!

mustang25 commented 7 years ago

Hi @pjhampton, I just wanted to make sure that I am understanding things correctly. For all of the items in The List, I need to add an entry to functions.txt in the cover directory. Does this sound correct?

Also, I wanted to check what should be done if I can't find an article for one of the functions listed?

pjhampton commented 7 years ago

Hey @mustang25! Yep that's correct.

Also, I wanted to check what should be done if I can't find an article for one of the functions listed?

That's fine and expected. Can you please take a note of them and let us know?

hliu45 commented 7 years ago

I'm interested in the project, too.

pjhampton commented 7 years ago

Hey @hliu45,

Awesome! This project only requires one person working on it though! Fear not, there is loads of other stuff you can be helping with πŸ˜„ Checkout:

Hope you can help out sometime! πŸš€

pjhampton commented 7 years ago

Looks like this can be closed off πŸ‘

Thanks everyone πŸ’›