Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

LexicalCases

Guides

  • LexicalCases

Tech Notes

  • LexicalCases Overview

Symbols

  • BoundToken
  • CountSummaryLowercase
  • DataJoin
  • ExpandPattern
  • FormatLexicalPattern
  • HideMissing
  • LexicalCases
  • LexicalDispersionPlot
  • LexicalDispersionSmoothHistogram
  • LexicalMap
  • LexicalPattern
  • LexicalPatternQ
  • LexicalStructure
  • LexicalSummary
  • LexigramCount
  • MaxCategories
  • OptionalToken
  • Sandwich
  • StopWordQ
  • SynonymToken
  • TextType
  • ToLexicalPattern
  • TypeToken
  • WordToken
  • $FilterableProperties
  • $LexicalCasesServices
  • $SampleParagraph
  • $SampleSentence
  • $SampleStringExpression
FaizonZaman`LexicalCases`
Sandwich
​
Sandwich
[outer,inner]
sandwiches lexical pattern
inner
between two instances of lexical pattern
outer
​
​
Sandwich
[outer]
Represents an operator form that can be applied to an expression
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Sandwich
"car" with a
WordToken
pattern
In[1]:=
lexpatt=Sandwich
WordToken
[1],
BoundToken
["car"]
Out[1]=
WordToken[1]~~BoundToken[car]~~WordToken[1]
In[2]:=
sndwchCases=
LexicalCases
["Content""cars",lexpatt]
Out[2]=
LexicalSummary

Source: Wikipedia
Articles: 35
Matches: 633
Data not saved. Save now

In[3]:=
sndwchCases["CountGroups"]
Out[3]=
Matches
CountGroup
{stock car racing}
19
{the car is,Stock car racing,electric car to}
9
{The car was,electric car in}
8
{the car was,the car and}
7
{sports car was,sports car racing,police car used,luxury car is,European car classification}
6
{the car as,of car manufacturers}
5
{the car to,sports car market,a car with}
4
{
…
13
}
3
{
…
40
}
2
{
…
386
}
1
Possible Issues  
(1)

SeeAlso
LexicalCases
 
▪
WordBoundary
 
▪
StartOfString
 
▪
EndOfString
TechNotes
▪
LexicalCases Overview
RelatedGuides
▪
LexicalCases
RelatedLinks
▪
LexicalCases GitHub Repository
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com