24/7 Support: 800.608.6482

Get Started

Developer Docs

keyword_extract

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

keyword_extract( string, keywords var )

<mvt:assign name="g.return_value" value="keyword_extract( string, keywords var )" />

Given a string, will extract keywords from it. Skipping SGML tags and stemming words (e.g., "running" becomes "run", but "bring" is not changed), the unique list of keywords are placed in the keywords as an array. Also, some common english words (the articles, "for" "are", etc.) are removed. Note that there are some words may stem unexpectedly (e.g., "has" transforms to "ha").

Parameters

  • string

    Populates the keywords array and returns number of elements.

  • keywords var

Return Values

Examples

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2019 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.