Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Humanizer of WUI page title #393

Open
assem-ch opened this issue Mar 26, 2014 · 7 comments
Open

Query Humanizer of WUI page title #393

assem-ch opened this issue Mar 26, 2014 · 7 comments

Comments

@assem-ch
Copy link
Contributor

Simplifying the show of Query in order to make a readable Page Header/Title

This will be very helpful for SEO and readability

sura_arabic:"الفاتحة" + aya_id:2
ِِ==> Aya 2 of Sura الفاتحة 

a_w:4

==> Ayahs with 4 words 

sajda:نعم

==> All sajdah in Quran
@assem-ch
Copy link
Contributor Author

  • الفاتحة ١
  • سورة الفاتحة الآية ١
  • الآية الأولى من سورة الفاتحة
  • الفاتحة الآية ٥
  • قال ومشتقاتها
  • مشتقات قال
  • الأيات التي تحتوي على ٥ حروف
  • السجدات
  • آية الكرسي

@IronFist16
Copy link

I'm trying to understand where to fix this issue, you said in Python API, but I see you talking about making a readable Page Header/Title from a simplified query?, can you explain to me more here? Or If you can provide work steps here.

@assem-ch
Copy link
Contributor Author

You need to make regexes that translate (الأيات التي تحتوي على ٥ حروف) to a_l:5, this should be a python function.

This function will be added to the QueryProcessing module in Alfanous library.

@sneetsher
Copy link
Member

Nice to see you here @IronFist16 , welcome.

@assem-ch The title in this issue is talking about the reverse function: wui_query to humanized_title.

@IronFist16
Copy link

@sneetsher Whatever -_-

@assem-ch
Copy link
Contributor Author

@IronFist16 sorry my mistake, this should be 2 different issues

@IronFist16
Copy link

That's why I needed clarification, it was kinda misleading for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants