Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:11:57+00:00 2026-05-30T03:11:57+00:00

In the iOS email client, when an email contains a date, time or location,

  • 0

In the iOS email client, when an email contains a date, time or location, the text becomes a hyperlink and it is possible to create an appointment or look at a map simply by tapping the link. It not only works for emails in English, but in other languages also. I love this feature and would like to understand how they do it.

The naive way to do this would be to have many regular expressions and run them all. However I this is not going to scale very well and will work for only a specific language or date format, etc. I think that Apple must be using some concept of machine learning to extract entities (8:00PM, 8PM, 8:00, 0800, 20:00, 20h, 20h00, 2000 etc.).

Any idea how Apple is able to extract entities so quickly in its email client? What machine learning algorithm would you to apply accomplish such task?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:11:59+00:00Added an answer on May 30, 2026 at 3:11 am

    They likely use Information Extraction techniques for this.

    Here is a demo of Stanford’s SUTime tool:

    http://nlp.stanford.edu:8080/sutime/process

    You would extract attributes about n-grams (consecutive words) in a document:

    • numberOfLetters
    • numberOfSymbols
    • length
    • previousWord
    • nextWord
    • nextWordNumberOfSymbols
      …

    And then use a classification algorithm, and feed it positive and negative examples:

    Observation  nLetters  nSymbols  length  prevWord  nextWord isPartOfDate  
    "Feb."       3         1         4       "Wed"     "29th"   TRUE  
    "DEC"        3         0         3       "company" "went"   FALSE  
    ...
    

    You might get away with 50 examples of each, but the more the merrier. Then, the algorithm learns based on those examples, and can apply to future examples that it hasn’t seen before.

    It might learn rules such as

    • if previous word is only characters and maybe periods…
    • and current word is in "february", "mar.", "the" …
    • and next word is in "twelfth", any_number …
    • then is date

    Here is a decent video by a Google engineer on the subject

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I create a png image from text in iOS?
Is it possible to send email in iOS without relying on the default mail
Is it possible for my iOS app to access the user's email inbox in
Is this possible to retrieve email id configured on iOS device
Possible Duplicate: Best practices for validating email address in Objective-C on iOS 2.0? I
Possible Duplicate: iOS - Detecting whether or not device support phone calls? I'm writing
How do I detect when an iOS app is launched for the first time?
Can someone help me with the following code? For sending email in iOS, is
If I were to send an email from any ios app (non built in
I have received an email on my iPhone (with iOS 5.0.1) with an HTML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.