Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: pub@towardsai.net
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

How AI and ML are Turning the Mobile App Development Industry into a Smart Industry?
Latest   Machine Learning

How AI and ML are Turning the Mobile App Development Industry into a Smart Industry?

Last Updated on July 20, 2023 by Editorial Team

Author(s): Sophia Martin

Originally published on Towards AI.

Is it right to call Artificial Intelligence (AI) and Machine Learning (ML), a future technology for developing new-age applications? Why not!

So, here can we assume that we have been entering into a new modern world in 2021, where things will be highly advanced and automated?

Well, Artificial Intelligence is a computer science that focuses on creating machines that replicate the behavior of human beings. And Artificial Intelligence is slowly becoming the reality of tomorrow!

In recent years, undoubtedly, the mobile app development industry is revolutionized and turned our lifestyle into a smart life with AI and ML-driven applications. From watching your favorite shows on live streaming apps to using multiple filters on the face in Snapchat, finding your soulmate on tinder to asking Siri to order something for you, you will find the presence of AI and Machine Learning everywhere. And today, this technology is embracing in several ways in different domains, including healthcare, eCommerce, mobile applications, and so on.

A leading IT solution development company, AGC Network, believes that “Artificial Intelligence is not about building a mind; it’s about the improvement of tools to solve problems.”

Did you know that the global artificial intelligence software market is expected to take a drastic jump in the coming years and estimated to generate revenues from around 118.6 billion in 2025? The wide array of applications, including machine learning, robotic process automation, caters to a significant role in economic growth as well.

Source: https://www.forbes.com/sites/louiscolumbus/2018/01/12/10-charts-that-will-change-your-perspective-on-artificial-intelligences-growth/#42a23d324758

If you are still feeling clueless and scratching your head to know what AI is and how it is revolutionizing the mobile app industry, then dig deep and understand everything related to Artificial Intelligence. This blog has covered the below-mentioned points.

Introduction of Artificial Learning (AI)

Impacts of Artificial Intelligence on Different Industries

Surprising Statistics Related to Artificial Intelligence

Challenges of Developing Mobile application with AI and Machine Learning Capabilities

People who have been into mobile app development companies can easily relate these points, but for non-techies, it is challenging to interpret. So, let’s elaborate on each point and understand it in a simple language!

What Is Artificial Intelligence?

Do chatbots, virtual assistants, or automated cars fascinate you? If yes, then you already know the Artificial Intelligence!

Well, AI is nothing but a modern technique that enables computers to replicate human behavior. And today, the most common example of AI in self-driving cars, chatbots, virtual agents, and so on, that heavily rely on deep learning and natural language processing. By using deep learning, NLP, and integrating algorithms, computers can be trained to accomplish a specific task by processing a large amount of data and evaluating particular patterns in the data.

The CEO of DataRobot, Jeremy Achine, explains AI more simply “An AI is a computer system that can perform tasks that ordinarily require human intelligence. These artificial intelligence systems are powered by machine learning. Many of them are powered by machine learning; some of them are powered by specifically deep learning; some of them are powered by very boring things like just rules.”

Image source: https://www.slideshare.net/linagora/deep-learning-in-practice-speech-recognition-and-beyond-meetup

How Does Artificial Intelligence and Machine Learning Become a Need of An Hour?

While things have been managed earlier as well in a conventional way but the science fiction of yesterday has opened the doors for new opportunities for businesses from different fields. Moreover, AI has already taken the world by storm and drastically altered the way people think and move at every step of their life.

Regardless of the size and nature of your business, AI is yielding a great deal of success in nearly every industry. The Founder and CEO of Machine Learning Company SparkCognition, Amir Husain, said: “Artificial Intelligence is a kind of the second coming of software.” Instead of just taking over human intelligence, it is acting as a supporting tool to businesses for accessing and analyzing thousands of layers of data far more quickly than human beings. Humans can leverage this technology to uplift their decision-making abilities as opposed to traditional software.

Apart, here are a few ways AI and ML will enrich your business in 2021:

  • Improve Search Results

According to the Annual Report of the State of IT 2019, buyers are more likely to spend 40% more on shopping than the planned, especially when they find personalized shopping experience.

Do you know that search results can make a big difference in your business revenue, especially when you are into eCommerce? Amir Konigsberg, the CEO of Twiggle, says, “your eCommerce search engines have to think the way humans do. He added, customers usually discontinued online shopping if the displayed product results are often irrelevant”.

To uplift the shopping experience of the users, a large segment of the companies started leveraging the Natural Language process to shortlist, contextualize, and improve the search results for online customers. With the help of outsourcing software companies, many businesses have developed smart apps that see the world as you do.

Image Source
  • Boost Personalised Shopping Experience

According to the Ubisend Chatbot report 2017, one out of five is willing to shop from chatbots, and 40% of customers use chatbots to look for the latest deals and offers.

Impressive right!

Have you ever used Amazon for shopping? You will understand what we are discussing here…

Whether you have hired Android App Development Company or outsource the services to the freelancer, machine learning can help you segregate the user based on their interest and budget. HOW?

With the integration of in-depth data learning and monitoring the user activity on all devices, they create a universal customer view. In other words, machine learning helps you collect data to better structure your customer line and enables you accordingly approach each customer group and deliver the content that precisely fits their individual needs.

For example, you are searching for the smartwatches on Flipkart. Based on your needs and budget, the search engine will not only help you narrow down the best options but also enables you to merge the trendy accessories as well, like detachable straps along with your shopping.

  • Predict User Behavior

This is where Artificial Intelligence can be a real game-changer for businesses. HOW?

Machine learning applications developed by top AI app development companies help marketers to understand customer’s choices, preferences, and shopping patterns by evaluating different parameters of data including age, area, search frequency, gender, frequency of app usage, and more.

  • Build Better User Engagement With Virtual Assistants

How would you order the goods today? Did you browse on Google or ask your Alexa to make orders for you?

Considering UK Online Shopping and E-Commerce Statistics for 2017, it is concluded that consumers heavily relying on online shopping today and estimated that 95% of purchases would be made online through voice commands.

“Hey Alexa,” “Okay, Google,” these are the recently emerged as one of the most prominent voices in eCommerce. It won’t be wrong to quote that today’s modern shopping trends are evolving around these words.

While thousands of customers are new to online shopping, hence they look for little help to smoothly leverage the benefit of online shopping. This is where AI-driven virtual assistants come and make it possible with just a voice command.

For instance, by using Siri, customers can check the weather forecast, book their most awaited trips, reserving dining, and so on, by simply saying, Hey SIRI, “Play some music or book tickets for me.”

This way, virtual assistants are impacting and revolutionizing the way consumers purchase and providing new opportunities to business retailers.

Still wondering whether you need to invest in Artificial Intelligence and Machine Learning or not? Let’s have a look over some stats and facts related to AI and learn how it is reshaping the businesses.

Surprising Statistics Related to Artificial Intelligence and Machine Learning

  • According to the report submitted by Brain Curtis, Global GDP is expected to reach $15.7 trillion by 2030 with the rapidly increasing adoption of AI technology in different business domains.
Image Source
Image Source

According to Forbes, more than 50% of enterprises are adopting machine learning to refine marketing issues and smoothly running their ventures.

According to Mckinsey report, millions of banks are using ML to improve customer satisfaction and reducing data errors.

Now the question is, how simple is to develop an application with the AI and Machine Learning process?

Whether you are a startup or an enterprise, if you are still waiting to integrate the Artificial Intelligence Application to their business, then I would strongly recommend you not to delay anymore. This is because AI is going to advances the world more than any other tech innovation in the last few years. However, building an application with AI will not be as simple as you might be considering. There are multiple challenges that any Android App Development Company need to face while developing an app with AI.

Let’s discuss it in detail and understand how to fix it efficiently:

Understanding the Fast-Paced Market Trends

No doubt, AI is quickly revolutionizing the market trends and providing businesses with an incredible opportunity to grow with robotic solutions.

However, now the race is not limited to develop AI applications but also to ensure that it has rich data quality and quantity.

How will you decide whether iOS app development company has delivered you a high-quality AI solution or not? Well, the quality of the system heavily relies on the data fed into it. Usually, AI considers various learning systems to gather information as humans do, but to detect a certain pattern, they need to integrate much more data than humans do.

You must be wondering what this can be performed by humans as well. But here the difference is, AI can analyze multiple layers of data with a speed that humans can’t even think of and learn it quickly. So the better data you fed into AI applications, the better the outcomes will be delivered to you!

How would you resolve the issue?

The best way to address the problem is to understand what data you already have in the application and what your model would be required? To identify the actual needs of your model, you must know what models you are working on. Whether it has structured data or raw data? Collect data from your customers by monitoring their shopping patterns, on-site interactions, gender, location, age, interests, and more.

Lack of Technicality to Develop AI Application

One of the biggest challenges to develop AI applications is the lack of a more profound understanding of principles on which AI technology based on. What capabilities and limitation it has?

Today, on one spectrum, every industry is rushing to adopt AI technologies in their business; on the other side, they are surrounded by the thousands of myths related to AI. From the need to hire in-house data science experts to have fantasies about sci-fi robots replacing humans quickly, many myths are leaving businesses in a great dilemma.

The lack of knowledge of developing AI applications will leave many businesses in a middle way and making them realize that it is impossible to reach their goals.

How to resolve this issue?

I know this might sound you depressing or discouraging. Still, I would recommend you to hire the best AI app developers well-versed with the latest AI technologies and understand the possibilities of AI that they can use to manage your business expectations.

Also, get inspired by the top leaders and go through their cases and learn how they deployed new technologies and what strategies they have adopted to lead the market.

Ending Note

Hopefully, you enjoyed reading this post and understand how Artificial Intelligence will be magnified in the coming years. In fact, in the coming years, every industry is virtually transforming their core business strategies and revamp the way they are dealing with customers today. With Artificial Intelligence and machine learning, they can provide customers with better user experience and the ability to drive innovative business opportunities.

So get in touch with the best AI mobile app developers to integrate the latest technologies to upscale the business growth!

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓

Sign Up for the Course
`; } else { console.error('Element with id="subscribe" not found within the page with class "home".'); } } }); // Remove duplicate text from articles /* Backup: 09/11/24 function removeDuplicateText() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, strong'); // Select the desired elements const seenTexts = new Set(); // A set to keep track of seen texts const tagCounters = {}; // Object to track instances of each tag elements.forEach(el => { const tagName = el.tagName.toLowerCase(); // Get the tag name (e.g., 'h1', 'h2', etc.) // Initialize a counter for each tag if not already done if (!tagCounters[tagName]) { tagCounters[tagName] = 0; } // Only process the first 10 elements of each tag type if (tagCounters[tagName] >= 2) { return; // Skip if the number of elements exceeds 10 } const text = el.textContent.trim(); // Get the text content const words = text.split(/\s+/); // Split the text into words if (words.length >= 4) { // Ensure at least 4 words const significantPart = words.slice(0, 5).join(' '); // Get first 5 words for matching // Check if the text (not the tag) has been seen before if (seenTexts.has(significantPart)) { // console.log('Duplicate found, removing:', el); // Log duplicate el.remove(); // Remove duplicate element } else { seenTexts.add(significantPart); // Add the text to the set } } tagCounters[tagName]++; // Increment the counter for this tag }); } removeDuplicateText(); */ // Remove duplicate text from articles function removeDuplicateText() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, strong'); // Select the desired elements const seenTexts = new Set(); // A set to keep track of seen texts const tagCounters = {}; // Object to track instances of each tag // List of classes to be excluded const excludedClasses = ['medium-author', 'post-widget-title']; elements.forEach(el => { // Skip elements with any of the excluded classes if (excludedClasses.some(cls => el.classList.contains(cls))) { return; // Skip this element if it has any of the excluded classes } const tagName = el.tagName.toLowerCase(); // Get the tag name (e.g., 'h1', 'h2', etc.) // Initialize a counter for each tag if not already done if (!tagCounters[tagName]) { tagCounters[tagName] = 0; } // Only process the first 10 elements of each tag type if (tagCounters[tagName] >= 10) { return; // Skip if the number of elements exceeds 10 } const text = el.textContent.trim(); // Get the text content const words = text.split(/\s+/); // Split the text into words if (words.length >= 4) { // Ensure at least 4 words const significantPart = words.slice(0, 5).join(' '); // Get first 5 words for matching // Check if the text (not the tag) has been seen before if (seenTexts.has(significantPart)) { // console.log('Duplicate found, removing:', el); // Log duplicate el.remove(); // Remove duplicate element } else { seenTexts.add(significantPart); // Add the text to the set } } tagCounters[tagName]++; // Increment the counter for this tag }); } removeDuplicateText(); //Remove unnecessary text in blog excerpts document.querySelectorAll('.blog p').forEach(function(paragraph) { // Replace the unwanted text pattern for each paragraph paragraph.innerHTML = paragraph.innerHTML .replace(/Author\(s\): [\w\s]+ Originally published on Towards AI\.?/g, '') // Removes 'Author(s): XYZ Originally published on Towards AI' .replace(/This member-only story is on us\. Upgrade to access all of Medium\./g, ''); // Removes 'This member-only story...' }); //Load ionic icons and cache them if ('localStorage' in window && window['localStorage'] !== null) { const cssLink = 'https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'; const storedCss = localStorage.getItem('ionicons'); if (storedCss) { loadCSS(storedCss); } else { fetch(cssLink).then(response => response.text()).then(css => { localStorage.setItem('ionicons', css); loadCSS(css); }); } } function loadCSS(css) { const style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); } //Remove elements from imported content automatically function removeStrongFromHeadings() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, h6, span'); elements.forEach(el => { const strongTags = el.querySelectorAll('strong'); strongTags.forEach(strongTag => { while (strongTag.firstChild) { strongTag.parentNode.insertBefore(strongTag.firstChild, strongTag); } strongTag.remove(); }); }); } removeStrongFromHeadings(); "use strict"; window.onload = () => { /* //This is an object for each category of subjects and in that there are kewords and link to the keywods let keywordsAndLinks = { //you can add more categories and define their keywords and add a link ds: { keywords: [ //you can add more keywords here they are detected and replaced with achor tag automatically 'data science', 'Data science', 'Data Science', 'data Science', 'DATA SCIENCE', ], //we will replace the linktext with the keyword later on in the code //you can easily change links for each category here //(include class="ml-link" and linktext) link: 'linktext', }, ml: { keywords: [ //Add more keywords 'machine learning', 'Machine learning', 'Machine Learning', 'machine Learning', 'MACHINE LEARNING', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, ai: { keywords: [ 'artificial intelligence', 'Artificial intelligence', 'Artificial Intelligence', 'artificial Intelligence', 'ARTIFICIAL INTELLIGENCE', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, nl: { keywords: [ 'NLP', 'nlp', 'natural language processing', 'Natural Language Processing', 'NATURAL LANGUAGE PROCESSING', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, des: { keywords: [ 'data engineering services', 'Data Engineering Services', 'DATA ENGINEERING SERVICES', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, td: { keywords: [ 'training data', 'Training Data', 'training Data', 'TRAINING DATA', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, ias: { keywords: [ 'image annotation services', 'Image annotation services', 'image Annotation services', 'image annotation Services', 'Image Annotation Services', 'IMAGE ANNOTATION SERVICES', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, l: { keywords: [ 'labeling', 'labelling', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, pbp: { keywords: [ 'previous blog posts', 'previous blog post', 'latest', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, mlc: { keywords: [ 'machine learning course', 'machine learning class', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, }; //Articles to skip let articleIdsToSkip = ['post-2651', 'post-3414', 'post-3540']; //keyword with its related achortag is recieved here along with article id function searchAndReplace(keyword, anchorTag, articleId) { //selects the h3 h4 and p tags that are inside of the article let content = document.querySelector(`#${articleId} .entry-content`); //replaces the "linktext" in achor tag with the keyword that will be searched and replaced let newLink = anchorTag.replace('linktext', keyword); //regular expression to search keyword var re = new RegExp('(' + keyword + ')', 'g'); //this replaces the keywords in h3 h4 and p tags content with achor tag content.innerHTML = content.innerHTML.replace(re, newLink); } function articleFilter(keyword, anchorTag) { //gets all the articles var articles = document.querySelectorAll('article'); //if its zero or less then there are no articles if (articles.length > 0) { for (let x = 0; x < articles.length; x++) { //articles to skip is an array in which there are ids of articles which should not get effected //if the current article's id is also in that array then do not call search and replace with its data if (!articleIdsToSkip.includes(articles[x].id)) { //search and replace is called on articles which should get effected searchAndReplace(keyword, anchorTag, articles[x].id, key); } else { console.log( `Cannot replace the keywords in article with id ${articles[x].id}` ); } } } else { console.log('No articles found.'); } } let key; //not part of script, added for (key in keywordsAndLinks) { //key is the object in keywords and links object i.e ds, ml, ai for (let i = 0; i < keywordsAndLinks[key].keywords.length; i++) { //keywordsAndLinks[key].keywords is the array of keywords for key (ds, ml, ai) //keywordsAndLinks[key].keywords[i] is the keyword and keywordsAndLinks[key].link is the link //keyword and link is sent to searchreplace where it is then replaced using regular expression and replace function articleFilter( keywordsAndLinks[key].keywords[i], keywordsAndLinks[key].link ); } } function cleanLinks() { // (making smal functions is for DRY) this function gets the links and only keeps the first 2 and from the rest removes the anchor tag and replaces it with its text function removeLinks(links) { if (links.length > 1) { for (let i = 2; i < links.length; i++) { links[i].outerHTML = links[i].textContent; } } } //arrays which will contain all the achor tags found with the class (ds-link, ml-link, ailink) in each article inserted using search and replace let dslinks; let mllinks; let ailinks; let nllinks; let deslinks; let tdlinks; let iaslinks; let llinks; let pbplinks; let mlclinks; const content = document.querySelectorAll('article'); //all articles content.forEach((c) => { //to skip the articles with specific ids if (!articleIdsToSkip.includes(c.id)) { //getting all the anchor tags in each article one by one dslinks = document.querySelectorAll(`#${c.id} .entry-content a.ds-link`); mllinks = document.querySelectorAll(`#${c.id} .entry-content a.ml-link`); ailinks = document.querySelectorAll(`#${c.id} .entry-content a.ai-link`); nllinks = document.querySelectorAll(`#${c.id} .entry-content a.ntrl-link`); deslinks = document.querySelectorAll(`#${c.id} .entry-content a.des-link`); tdlinks = document.querySelectorAll(`#${c.id} .entry-content a.td-link`); iaslinks = document.querySelectorAll(`#${c.id} .entry-content a.ias-link`); mlclinks = document.querySelectorAll(`#${c.id} .entry-content a.mlc-link`); llinks = document.querySelectorAll(`#${c.id} .entry-content a.l-link`); pbplinks = document.querySelectorAll(`#${c.id} .entry-content a.pbp-link`); //sending the anchor tags list of each article one by one to remove extra anchor tags removeLinks(dslinks); removeLinks(mllinks); removeLinks(ailinks); removeLinks(nllinks); removeLinks(deslinks); removeLinks(tdlinks); removeLinks(iaslinks); removeLinks(mlclinks); removeLinks(llinks); removeLinks(pbplinks); } }); } //To remove extra achor tags of each category (ds, ml, ai) and only have 2 of each category per article cleanLinks(); */ //Recommended Articles var ctaLinks = [ /* ' ' + '

Subscribe to our AI newsletter!

' + */ '

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

'+ '

Towards AI has published Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!

' + '
' + '' + '' + '

Note: Content contains the views of the contributing authors and not Towards AI.
Disclosure: This website may contain sponsored content and affiliate links.

' + 'Discover Your Dream AI Career at Towards AI Jobs' + '

Towards AI has built a jobs board tailored specifically to Machine Learning and Data Science Jobs and Skills. Our software searches for live AI jobs each hour, labels and categorises them and makes them easily searchable. Explore over 10,000 live jobs today with Towards AI Jobs!

' + '
' + '

🔥 Recommended Articles 🔥

' + 'Why Become an LLM Developer? Launching Towards AI’s New One-Stop Conversion Course'+ 'Testing Launchpad.sh: A Container-based GPU Cloud for Inference and Fine-tuning'+ 'The Top 13 AI-Powered CRM Platforms
' + 'Top 11 AI Call Center Software for 2024
' + 'Learn Prompting 101—Prompt Engineering Course
' + 'Explore Leading Cloud Providers for GPU-Powered LLM Training
' + 'Best AI Communities for Artificial Intelligence Enthusiasts
' + 'Best Workstations for Deep Learning
' + 'Best Laptops for Deep Learning
' + 'Best Machine Learning Books
' + 'Machine Learning Algorithms
' + 'Neural Networks Tutorial
' + 'Best Public Datasets for Machine Learning
' + 'Neural Network Types
' + 'NLP Tutorial
' + 'Best Data Science Books
' + 'Monte Carlo Simulation Tutorial
' + 'Recommender System Tutorial
' + 'Linear Algebra for Deep Learning Tutorial
' + 'Google Colab Introduction
' + 'Decision Trees in Machine Learning
' + 'Principal Component Analysis (PCA) Tutorial
' + 'Linear Regression from Zero to Hero
'+ '

', /* + '

Join thousands of data leaders on the AI newsletter. It’s free, we don’t spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

',*/ ]; var replaceText = { '': '', '': '', '
': '
' + ctaLinks + '
', }; Object.keys(replaceText).forEach((txtorig) => { //txtorig is the key in replacetext object const txtnew = replaceText[txtorig]; //txtnew is the value of the key in replacetext object let entryFooter = document.querySelector('article .entry-footer'); if (document.querySelectorAll('.single-post').length > 0) { //console.log('Article found.'); const text = entryFooter.innerHTML; entryFooter.innerHTML = text.replace(txtorig, txtnew); } else { // console.log('Article not found.'); //removing comment 09/04/24 } }); var css = document.createElement('style'); css.type = 'text/css'; css.innerHTML = '.post-tags { display:none !important } .article-cta a { font-size: 18px; }'; document.body.appendChild(css); //Extra //This function adds some accessibility needs to the site. function addAlly() { // In this function JQuery is replaced with vanilla javascript functions const imgCont = document.querySelector('.uw-imgcont'); imgCont.setAttribute('aria-label', 'AI news, latest developments'); imgCont.title = 'AI news, latest developments'; imgCont.rel = 'noopener'; document.querySelector('.page-mobile-menu-logo a').title = 'Towards AI Home'; document.querySelector('a.social-link').rel = 'noopener'; document.querySelector('a.uw-text').rel = 'noopener'; document.querySelector('a.uw-w-branding').rel = 'noopener'; document.querySelector('.blog h2.heading').innerHTML = 'Publication'; const popupSearch = document.querySelector$('a.btn-open-popup-search'); popupSearch.setAttribute('role', 'button'); popupSearch.title = 'Search'; const searchClose = document.querySelector('a.popup-search-close'); searchClose.setAttribute('role', 'button'); searchClose.title = 'Close search page'; // document // .querySelector('a.btn-open-popup-search') // .setAttribute( // 'href', // 'https://medium.com/towards-artificial-intelligence/search' // ); } // Add external attributes to 302 sticky and editorial links function extLink() { // Sticky 302 links, this fuction opens the link we send to Medium on a new tab and adds a "noopener" rel to them var stickyLinks = document.querySelectorAll('.grid-item.sticky a'); for (var i = 0; i < stickyLinks.length; i++) { /* stickyLinks[i].setAttribute('target', '_blank'); stickyLinks[i].setAttribute('rel', 'noopener'); */ } // Editorial 302 links, same here var editLinks = document.querySelectorAll( '.grid-item.category-editorial a' ); for (var i = 0; i < editLinks.length; i++) { editLinks[i].setAttribute('target', '_blank'); editLinks[i].setAttribute('rel', 'noopener'); } } // Add current year to copyright notices document.getElementById( 'js-current-year' ).textContent = new Date().getFullYear(); // Call functions after page load extLink(); //addAlly(); setTimeout(function() { //addAlly(); //ideally we should only need to run it once ↑ }, 5000); }; function closeCookieDialog (){ document.getElementById("cookie-consent").style.display = "none"; return false; } setTimeout ( function () { closeCookieDialog(); }, 15000); console.log(`%c 🚀🚀🚀 ███ █████ ███████ █████████ ███████████ █████████████ ███████████████ ███████ ███████ ███████ ┌───────────────────────────────────────────────────────────────────┐ │ │ │ Towards AI is looking for contributors! │ │ Join us in creating awesome AI content. │ │ Let's build the future of AI together → │ │ https://towardsai.net/contribute │ │ │ └───────────────────────────────────────────────────────────────────┘ `, `background: ; color: #00adff; font-size: large`); //Remove latest category across site document.querySelectorAll('a[rel="category tag"]').forEach(function(el) { if (el.textContent.trim() === 'Latest') { // Remove the two consecutive spaces (  ) if (el.nextSibling && el.nextSibling.nodeValue.includes('\u00A0\u00A0')) { el.nextSibling.nodeValue = ''; // Remove the spaces } el.style.display = 'none'; // Hide the element } }); // Add cross-domain measurement, anonymize IPs 'use strict'; //var ga = gtag; ga('config', 'G-9D3HKKFV1Q', 'auto', { /*'allowLinker': true,*/ 'anonymize_ip': true/*, 'linker': { 'domains': [ 'medium.com/towards-artificial-intelligence', 'datasets.towardsai.net', 'rss.towardsai.net', 'feed.towardsai.net', 'contribute.towardsai.net', 'members.towardsai.net', 'pub.towardsai.net', 'news.towardsai.net' ] } */ }); ga('send', 'pageview'); -->